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)
Change History (3)
Changed October 26, 2010 05:03PM UTC by comment:1
Changed October 26, 2010 05:05PM UTC by comment:2
owner: | → aq1018 |
---|---|
priority: | major → low |
status: | new → pending |
Changed November 11, 2010 11:09PM UTC by comment:3
status: | pending → closed |
---|
Automatically closed due to 14 days of inactivity.
nice patch, seems to work! please roll it into jQuery ASAP!