Skip to main content

Search and Top Navigation

#4018 closed bug (notabug)

Opened January 30, 2009 11:28PM UTC

Closed January 31, 2009 03:00AM UTC

Last modified October 11, 2012 09:15PM UTC

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!

Attachments (0)
Change History (2)

Changed January 31, 2009 03:00AM UTC by rdworth comment:1

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.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:2

milestone: TBD

Milestone TBD deleted