Jürgen Ragaller wrote:
Hi Jörn
Am Sep 20, 2007 um 13:03 schrieb Joern Nettingsmeier:
Jürgen Ragaller wrote:
Am 18.09.2007 um 14:38 schrieb Jürgen Ragaller:
Now the last tiny problem to solve (for now...) is to avoid the
collapsing of script tags... (right now dojo complains with a
javascript alert box, that _editor_url is not set - a followup
error of the partial script tag collapsing).
I accidentially had the prettyprinting transformation in my sitemap
(very handy for checking the code but sometimes dangerous...).
yeah - finally this thing is working - hurray!
out of curiousity: how exactly did prettyprinting cause you trouble?
it should be fixed so that it doesn't eat javascript sections...
Empty tags are collapsed:
e.g.:
<script src="..." ></script> collapses to <script /> (this was the
case with the dojo script imports in the head section)
<textarea></textarea> collapses to <textarea />
The collapsed version is correct xhtml but for instance <script />
let's firefox go crazy
Jürgen
Actually it isn't correct XHTML and it isn't a Firefox bug. It's a bug
in XHTML. From my understanding of XML these two are equivalent:
<foo></foo> and <foo/>. However, they aren't necessarily equivalent in
XHTML. Since XHTML is supposed to be XML, this doesn't track. From
http://www.w3.org/TR/xhtml1/#h-4.3:
"All elements other than those declared in the DTD as EMPTY must have an
end tag. Elements that are declared in the DTD as EMPTY can have an end
tag or can use empty element shorthand"
And from the strict DTD we see that script is not declared as empty.
<!-- script statements, which may include CDATA sections -->
<!ELEMENT script (#PCDATA)>
<!ATTLIST script
id ID #IMPLIED
charset %Charset; #IMPLIED
type %ContentType; #REQUIRED
src %URI; #IMPLIED
defer (defer) #IMPLIED
xml:space (preserve) #FIXED 'preserve'
>
But hr is:
<!--=================== Horizontal Rule
==================================-->
<!ELEMENT hr EMPTY>
<!ATTLIST hr
%attrs;
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]