Closed
Bug 31560
Opened 25 years ago
Closed 25 years ago
DOM sibling node navigation
Categories
(Core :: DOM: Core & HTML, defect, P3)
Tracking
()
VERIFIED
INVALID
People
(Reporter: keith_bowes, Assigned: vidur)
Details
Attachments
(1 file)
244 bytes,
text/html
|
Details |
Navigating through the DOM node structure with the "nextSibling" and "previousSibling" properties doesn't work. I've tested this with the M14 release, as well as the 2000-03-11-08 nightly build, on Windows 98. Here's sample HTML source that demonstrates the bug: <div onclick="this.nextSibling.style.color='red';">Click me to make my sibling red</div> <div onclick="this.previousSibling.style.color='green';">Click me to make my sibling green</div> Unfortunately, I'm not aware of any "live" on-line samples that exposes the bug.
Reporter | ||
Comment 1•25 years ago
|
||
Comment 2•25 years ago
|
||
{next,previous}Sibling does indeed work here (there might be bugs of course), the problem in the testcase is that the nextSibling of the first div is the text between the two divs (ie the newline) and the previous sibling of the second div is the same text node. Removing the whitespace between the two divs makes the testcase work. Marking invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•