Bug Tracker

Modify

Ticket #6815 (closed bug: worksforme)

Opened 3 years ago

Last modified 3 years ago

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

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

comment:1 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to worksforme
  • Component changed from ajax to core

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.

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

View

Add a comment

Modify Ticket

Action
as closed
Author


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

 
Note: See TracTickets for help on using tickets.