Skip to main content

Bug Tracker

Side navigation

#8944 closed bug (worksforme)

Opened April 22, 2011 09:20AM UTC

Closed April 22, 2011 11:16AM UTC

Last modified April 22, 2011 12:14PM UTC

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

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

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,

Attachments (0)
Change History (2)

Changed April 22, 2011 11:16AM UTC by addyosmani comment:1

description: \ 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, \ \ 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, \ \
resolution: → worksforme
status: newclosed

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.

Changed April 22, 2011 12:14PM UTC by rwaldron comment:2

component: unfiledmanipulation
priority: undecidedlow