Bug Tracker

Opened 13 years ago

Closed 13 years ago

#6815 closed bug (worksforme)

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.

Change History (1)

comment:1 Changed 13 years ago by dmethvin

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.

Note: See TracTickets for help on using tickets.