Skip to main content

Bug Tracker

Side navigation

#6815 closed bug (worksforme)

Opened July 22, 2010 02:09PM UTC

Closed July 22, 2010 07:08PM UTC

Dynamically inserting extra closing tag throws error in IE

Reported by: IrritableGourmet Owned by:
Priority: Milestone: 1.4.3
Component: core Version: 1.4.2
Keywords: Cc:
Blocked by: Blocking:
Description

I was loading (.load()) a PHP page containing row/cell html into a table and was receiving an Object Expected error in IE7 for line 103 char 403 of the jQuery file. I accidentally put a superfluous </table> tag at the end of the imported page. Removing it fixed the issue.

I also tested with .html and .get/.post and received the same error. It works fine in Firefox and Chrome.

Attachments (0)
Change History (1)

Changed July 22, 2010 07:08PM UTC by dmethvin comment:1

component: ajaxcore
resolution: → worksforme
status: newclosed

That's why the docs say:

To ensure cross-platform compatibility, the snippet must be well-formed. Tags that can contain other elements should be paired with a closing tag ...

http://api.jquery.com/jquery/#jQuery2

If the html is well-formed (as it should be) I don't think there's a problem. Error cases often perform inconsistently cross-browser.