[svgwg] Issue: Define what element is returned by SVGSVGElement.getElementById when id duplicated marked as DoC_accepted

nikosandronikos has just labeled an issue for 
https://github.com/w3c/svgwg as "DoC_accepted":

== Define what element is returned by SVGSVGElement.getElementById 
when id duplicated ==
Related to #182 

I've expanded the test to see what element is returned when multiple 
elements within the SVG document have the same id.
https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=4295

It looks like most implementations return the first element in 
document order.
I've tested:
* Safari
* Firefox (Mac and Win)
* Chrome (Mac and Win)
* IE 11

It would be nice to define this rather than leave it undefined.

Anyone have any objections? I'll put this up for a resolution at the 
next telcon.

See https://github.com/w3c/svgwg/issues/185

Received on Sunday, 7 August 2016 11:08:43 UTC