Skip to main content

Bug Tracker

Side navigation

#5636 closed bug (worksforme)

Opened December 10, 2009 08:00PM UTC

Closed June 13, 2010 11:18PM UTC

next() function returns different results in Firefox and Webkit

Reported by: jcontonio Owned by:
Priority: minor Milestone: 1.4
Component: traversing Version: 1.3.2
Keywords: next Cc:
Blocked by: Blocking:
Description

To test, here is a simple definition list. The html is invalid XHTML, so I am not sure if this is a case of "Don't mark it up this way", but I figured I'd post this as it was causing me some grief this morning.

$('dt').next() = <dd> in webkit

$('dt').next() = <h5> in firefox

<dl>

<dt>

<h5>This is a test</h5>

</dt>

<dd>

This is the item that should return

</dd>

</dl>

Attachments (0)
Change History (1)

Changed June 13, 2010 11:18PM UTC by dmethvin comment:1

component: unfiledtraversing
resolution: → worksforme
status: newclosed

It seems like Firefox terminates the DT element when it sees the H5. You can see the markup change in Firebug. So the traversal is correct for the markup the browser created.