Bug Tracker


Ticket #5166 (closed bug: invalid)

Opened 5 years ago

Last modified 2 years ago

Nested links break the $().html() method

Reported by: yogsodoth Owned by:
Priority: major Milestone: 1.4
Component: unfiled Version: 1.3.2
Keywords: nested links, html method Cc:
Blocking: Blocked by:


The html() method truncates the contents of a link at the start of a nested link in Firefox, Chrome and Safari. Internet Explorer is unaffected.

The following URL demonstrates a test case:  http://ahawryluk.ca/clients/saveyourself.ca/testcase1.html

HTML/javascript source also included as an attachment.

Firefox/Safari/Chrome break the results of the .html() method at the start of the first nested link.

There are obviously workarounds for this, but I don't believe this is expected behaviour.


testcase1.html Download (496 bytes) - added by yogsodoth 5 years ago.
test case

Change History

Changed 5 years ago by yogsodoth

test case

comment:1 Changed 5 years ago by scott.gonzalez

  • Status changed from new to closed
  • Resolution set to invalid

Anchor tags cannot be nested.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.


Add a comment

Modify Ticket

as closed

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.