Closed
Bug 5141
Opened 26 years ago
Closed 26 years ago
Node.parent should be null for standalone nodes
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
FIXED
M5
People
(Reporter: waterson, Assigned: vidur)
Details
Attachments
(1 file)
(deleted),
text/plain
|
Details |
The current implementation of nsGenericElement::GetParent() returns an
"anonymous" document fragment for standalone DOM nodes, which is not correct
according to the most recent spec.
Reporter | ||
Comment 1•26 years ago
|
||
Reporter | ||
Comment 2•26 years ago
|
||
Added a test case.
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M5
Assignee | ||
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 3•26 years ago
|
||
Fix checked in on 4/16. The implementation now matches the spec. Note that I
modified the test to be a HTML file:
<body>
<script>
function foo() {
var baz = document.createElement('img');
dump('baz.parentNode == ' + baz.parentNode + '\n');
}
</script>
<form>
<input type="button" value="Press me" onclick="foo();">
</form>
</body>
Comment 5•18 years ago
|
||
RCS file: /cvsroot/mozilla/testing/mochitest/tests/test_bug5141.html,v
done
Checking in test_bug5141.html;
/cvsroot/mozilla/testing/mochitest/tests/test_bug5141.html,v <-- test_bug5141.html
initial revision: 1.1
done
Flags: in-testsuite+
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•