This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 25284 - Correct nullability for SVGSVGElement getIntersectionList and getEnclosureList
Summary: Correct nullability for SVGSVGElement getIntersectionList and getEnclosureList
Status: NEW
Alias: None
Product: SVG
Classification: Unclassified
Component: SVG Document Object Model (DOM) (show other bugs)
Version: SVG 2.0
Hardware: All All
: P2 minor
Target Milestone: Test Suite
Assignee: Doug Schepers
QA Contact: SVG Public List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-07 11:13 UTC by Nils Barth
Modified: 2014-04-07 11:13 UTC (History)
0 users

See Also:


Attachments

Description Nils Barth 2014-04-07 11:13:13 UTC
In the SVG 2 spec at:
5.11.2. Interface SVGSVGElement
http://www.w3.org/TR/SVG2/struct.html#InterfaceSVGSVGElement
in the definition of interface SVGSVGElement, the members:
  NodeList getIntersectionList(SVGRect rect, SVGElement referenceElement);
  NodeList getEnclosureList(SVGRect rect, SVGElement referenceElement);
should instead read:
  NodeList getIntersectionList(SVGRect rect, SVGElement? referenceElement);
  NodeList getEnclosureList(SVGRect rect, SVGElement? referenceElement);
i.e., referenceElement should be *nullable* (SVGElement*?*) in getIntersectionList and getEnclosureList.

The prose specifically assumes that these are nullable, reading:
SVGElement referenceElement
If not null, ...

http://www.w3.org/TR/SVG2/struct.html#__svg__SVGSVGElement__getIntersectionList
http://www.w3.org/TR/SVG2/struct.html#__svg__SVGSVGElement__getEnclosureList