Bug Tracker

Modify

Ticket #8944 (closed bug: worksforme)

Opened 2 years ago

Last modified 2 years ago

jQuery("#A").html(htmlStr) doen´t work in IE

Reported by: wanapito@… Owned by:
Priority: low Milestone: 1.next
Component: manipulation Version: 1.4.3
Keywords: Cc:
Blocking: Blocked by:

Description (last modified by addyosmani) (diff)

Hello,

The function jQuery("#results").html(htmlStr) doesn´t work in any version of Internet Explorer. I have to change for document.getElementById('results').innerHTML = htmlStr;, this work in all navegators.

Bye,

Change History

comment:1 Changed 2 years ago by addyosmani

  • Status changed from new to closed
  • Resolution set to worksforme
  • Description modified (diff)

Thanks for submitting a ticket to the jQuery Project! I've created a test case here and verified that this is working absolutely fine in IE6, 7 and 8 (haven't tested 9 but I'm quite sure it works there too).  http://jsfiddle.net/addyosmani/zds3H/ Just for the sake of thoroughness (they're effectively the same) here's a test case using 'jQuery(selector)' rather than '$(selector)' as well  http://jsfiddle.net/addyosmani/xrqJV/. This too is working fine across all versions. Please re-check your code.

comment:2 Changed 2 years ago by rwaldron

  • Priority changed from undecided to low
  • Component changed from unfiled to manipulation

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.