Skip to main content

Bug Tracker

Side navigation

#4801 closed bug ()

Opened June 22, 2009 08:00AM UTC

Closed November 11, 2010 11:09PM UTC

clean() reorders script tags without checking type attribute

Reported by: aq1018 Owned by: aq1018
Priority: low Milestone: 1.4
Component: core Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:
Description

This behavior causes metadata plugin to not work properly if a node is fetched from Ajax and inserted into DOM. All child script tags will be grouped and moved to the bottom of the parent node. The script should check for type attribute of script tag to make sure it is of type 'text/javascript'. Some people uses script tags for other purposes such as storing json data, with type as 'application/json' or 'text/x-json', and the position of the script tag is important in this case.

Attachments (1)
  • clean.patch (1.0 KB) - added by aq1018 June 22, 2009 08:06AM UTC.

    This is a patch to address this issue.

Change History (3)

Changed October 26, 2010 05:03PM UTC by anonymous comment:1

nice patch, seems to work! please roll it into jQuery ASAP!

Changed October 26, 2010 05:05PM UTC by rwaldron comment:2

owner: → aq1018
priority: majorlow
status: newpending

Changed November 11, 2010 11:09PM UTC by trac-o-bot comment:3

status: pendingclosed

Automatically closed due to 14 days of inactivity.