Closed Bug 1480855 Opened 7 years ago Closed 7 years ago

Javascript: cannot retrieve SVG elements by name

Categories

(Firefox :: Untriaged, defect)

61 Branch
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: hotsauce2998, Unassigned)

Details

Attachments

(1 file)

Attached file test.html
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0 Build ID: 20180803104322 Steps to reproduce: 1. open test.html attachment in browser 2. open a javascript console and run command: "document.getElementsByName('hehehe')" Actual results: Node list is empty Expected results: Node list should contain three SVG elements
Works in chromium
Shouldn't work in Chromium. Only html elements have names. Feel free to raise a Chromium bug.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: