Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#4018 closed bug (notabug)

Calling .html vs .text is different on FF vs IE

Reported by: hobbes Owned by:
Priority: minor Milestone:
Component: ui.core Version:
Keywords: Cc:
Blocked by: Blocking:

Description

This is for jQuery 1.5.3:

I have a test page with a script block with an id of "demo-script-01"

The following shows the contents of that script block in IE7/Windows (7.0.5730) and Firefox 3 / Windows (3.0.5):

alert($("#demo-script-01").html());

The following works in FF but not IE:

alert($("#demo-script-01").text());

Thanks!

Change History (2)

comment:1 Changed 11 years ago by rdworth

Resolution: invalid
Status: newclosed

The .html() and .text() methods are part of jQuery. Please post to the jQuery bug tracker

http://dev.jquery.com/

as this bug tracker is only for issues with jQuery UI plugin.

comment:2 Changed 8 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.