Closed (fixed)
Project:
SWFObject API
Version:
5.x-2.0-beta2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Sep 2008 at 15:07 UTC
Updated:
31 Dec 2008 at 21:25 UTC
CDATA seems to be the standard way both to get XHTML to validate with Javascript and to tell XML parsers to treat Javascript as character data. I've rolled a patch that simply adds CDATA start and end tags within the script tags printed by swfobject_api. This is also useful for sites using search engines that strip out XML tags, because it allows them to strip out javascript code as well.
| Comment | File | Size | Author |
|---|---|---|---|
| cdata.patch | 1.48 KB | tmcw |
Comments
Comment #1
arthurf commentedjavascript is now being output by Drupal (using drupal_add_js()) so I think this issue should be moot. If it is not, please feel free to reopen this issue.