Closed Bug 31560 Opened 26 years ago Closed 26 years ago

DOM sibling node navigation

Categories

(Core :: DOM: Core & HTML, defect, P3)

x86
Windows 98
defect

Tracking

()

VERIFIED INVALID

People

(Reporter: zooplah, Assigned: vidur)

Details

Attachments

(1 file)

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.
Attached file demo of the bug
{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: 26 years ago
Resolution: --- → INVALID
Mass update of qa contact
QA Contact: gerardok → janc
verified
Status: RESOLVED → VERIFIED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: