Opened 14 years ago
Closed 13 years ago
#4801 closed bug
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 (4)
Changed 14 years ago by
Attachment: | clean.patch added |
---|
comment:2 Changed 13 years ago by
Owner: | set to aq1018 |
---|---|
Priority: | major → low |
Status: | new → pending |
comment:3 Changed 13 years ago by
Status: | pending → closed |
---|
Automatically closed due to 14 days of inactivity.
Note: See
TracTickets for help on using
tickets.
This is a patch to address this issue.