Bug Tracker

Opened 13 years ago

Closed 13 years ago

#5636 closed bug (worksforme)

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:


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



<h5>This is a test</h5>

</dt> <dd>

This is the item that should return



Change History (1)

comment:1 Changed 13 years ago by dmethvin

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.

Note: See TracTickets for help on using tickets.