w3c / svgwg

SVG Working Group specifications
Other
704 stars 132 forks source link

The IDL of SVGSVGElement.getElementById does not allow null #923

Open saschanaz opened 11 months ago

saschanaz commented 11 months ago

Per https://svgwg.org/svg-next/struct.html#__svg__SVGSVGElement__getElementById:

The getElementById method, must return the first element in tree order, within the ‘svg’ element's descendants, whose ID is elementId, or null if there is no such element.

But the corresponding IDL is Element getElementById(DOMString elementId); which does not allow null.