Closed
Bug 912311
Opened 11 years ago
Closed 11 years ago
JavaScript error on accessing `ownerSVGElement` property of SVG element that has no parent
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 835048
People
(Reporter: p, Unassigned)
Details
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1500.0 Safari/537.36
Steps to reproduce:
Tried to access the `ownerSVGElement` of an SVG element that has no parent.
Test case:
document.createElementNS('http://www.w3.org/2000/svg', 'circle').ownerSVGElement;
Actual results:
JavaScript error (in Firefox 23 web console):
[Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: debugger eval code :: WCA_evalWithDebugger :: line 1" data: no]
Expected results:
A value of `null`
Updated•11 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•