[jboss-jira] [JBoss JIRA] Created: (JBPORTAL-1105) <p:theme/> mangles HTML assets defined in portal-themes.xml
Byron McCollum (JIRA)
jira-events at jboss.com
Wed Nov 8 14:13:41 EST 2006
<p:theme/> mangles HTML assets defined in portal-themes.xml
-----------------------------------------------------------
Key: JBPORTAL-1105
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1105
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal Theme
Affects Versions: 2.6.DR1, 2.4 Final
Environment: Mac OS X 10.4.8, JBoss Portal + JBoss AS (2.4)
Mac OS X 10.4.8, JBoss Portal + JBoss AS (2.6 DR1)
Reporter: Byron McCollum
Assigned To: Julien Viet
HTML assets defined in portal-themes.xml are being mangled when output from <p:theme/> tag in layout.
My empty script tags with src attributes are being converted to self closing script tags. This is invalid, and causes some use agents (IE currently, and soon to be WebKit and Gecko) to think that everything after the script tag is JavaScript source code, so the whole page ends up being rendered as a blank page. To get around this, I am basically bypassing the use of themes and just hard coding my links into the layout, which defeats the purpose of decoupling the two.
Other annoying issues:
• Double quotes being changed to single quotes.
• Extraneous spaces between attributes. (Look between script and src)
• Missing attributes (charset is missing)
For example, in portal-themes.xml I have this HTML asset in my theme...
<script type="text/javascript" charset="utf-8" src="/themes/mytheme/scripts/lib/overlib.js"></script>
The output in the layout looks like this...
<script src='/portal-core/themes/mytheme/scripts/lib/overlib.js' type='text/javascript' />
More Information:
http://ajaxian.com/archives/why-doesnt-script-work
http://webkit.org/blog/?p=68
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list