Skip to main content

Bug Tracker

Side navigation

#5166 closed bug (invalid)

Opened September 04, 2009 07:05PM UTC

Closed September 04, 2009 08:53PM UTC

Last modified March 15, 2012 11:18AM UTC

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:
Blocked by: Blocking:
Description

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.

Attachments (1)
  • testcase1.html (0.5 KB) - added by yogsodoth September 04, 2009 07:06PM UTC.

    test case

Change History (2)

Changed September 04, 2009 08:53PM UTC by scottgonzalez comment:1

resolution: → invalid
status: newclosed

Anchor tags cannot be nested.

Changed September 05, 2009 03:49AM UTC by dmethvin comment:2