Bug 112698
Summary: | SVG elements have no 'children' nodeList collection | ||
---|---|---|---|
Product: | WebKit | Reporter: | Premasagar Rose <p> |
Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
Status: | UNCONFIRMED | ||
Severity: | Normal | CC: | ahmad.saleem792, p, zimmermann |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Premasagar Rose
HTML elements have a 'children' collection, which is a nodeList representing the subset of 'childNodes' that are elements:
'children' in document.createElement('div'); // true
SVG elements have no such 'children' collection:
'children' in document.createElementNS('http://www.w3.org/2000/svg', 'rect'); // false
More info on 'children' and the related Element Traversal API:
https://hacks.mozilla.org/2009/06/dom-traversal/
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Ahmad Saleem
https://bugs.chromium.org/p/chromium/issues/detail?id=231505