-
1. Re: portal-themes.xml is destructive to theme HTML
halversp Nov 7, 2006 8:37 AM (in response to bgmccollum)This is not a bug, it's normal and appropriate canonicalization of XML. With the exception of dropping the charset attributes, all of these items are legitimate XML transformations which should not affect the behavior of any compliant XML parser. The two example fragments you describe are completely equivalent (again, other than the missing attribute).
p -
2. Re: portal-themes.xml is destructive to theme HTML
bgmccollum Nov 8, 2006 10:55 AM (in response to bgmccollum)No it is not appropriate. You MUST always close a script tag explicitly, even when you supply a src attribute. If you don't, certain user agents think everything after the srcipt tag is JavaScript code. Thus, the page will be rendered as a blank page.
It is a bug. Fix it. -
3. Re: portal-themes.xml is destructive to theme HTML
roy.russo Nov 8, 2006 11:19 AM (in response to bgmccollum)Can you create or link to the jira case?
Or is it easier for you to just sit here and whine all day? -
5. Re: portal-themes.xml is destructive to theme HTML
roy.russo Nov 9, 2006 1:08 PM (in response to bgmccollum)Fixed in 2.4 and 2.6 codebase. Thanks.
-
6. Re: portal-themes.xml is destructive to theme HTML
bgmccollum Nov 9, 2006 7:35 PM (in response to bgmccollum)Awesome! And sorry for being an ass. Totally not my style. I was just having a terrible day and was venting...
-
7. Re: portal-themes.xml is destructive to theme HTML
roy.russo Nov 9, 2006 7:45 PM (in response to bgmccollum)No problem. I'm an ass every day of my life. ;-)
We want more educated comments/cases like this one for portal, so thanks for reporting it. -
8. Re: portal-themes.xml is destructive to theme HTML
dewara Sep 18, 2007 9:13 AM (in response to bgmccollum)I have run into a problem which is related to this.
Namely:
JBPORTAL-1173 - Injecting in portal page using jboss-portlet.xml does not produce closing tag.
http://jira.jboss.com/jira/browse/JBPORTAL-1173
I am using JBOSS portal 2.4.1. I can't actually inject javascript into the header using jboss-portlet.xml as the missing closing script tag seems to be causing my browser to regard the remaining html as javascript.
Has this issue been fixed in later versions of jboss portal or is therea workaround somebody knows of?