[
http://issues.apache.org/jira/browse/WICKET-152?page=comments#action_12456744 ]
Martijn Dashorst commented on WICKET-152:
-----------------------------------------
>From xhtml 1.0 strict:
<!-- 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'
>
Same for transitional.
ID is a valid attribute for a script element.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head id="head">
<script id="script" type="text/css"><![CDATA[ ]]></script>
<title>Foo</title>
</head>
<body>
</body>
</html>
Validates. HTML 4 doesn't support the ID though
> Automatic multi window support and XHTML validation
> ---------------------------------------------------
>
> Key: WICKET-152
> URL: http://issues.apache.org/jira/browse/WICKET-152
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 2.0
> Reporter: John Major
> Priority: Minor
> Attachments: wicket2.0-152.patch
>
>
> With automatic multi window support enabled, Wicket is adding an id attribute
> to the script element that contains a character that prevents XHTML
> validation. For example,
> <script type="text/javascript"
> id="wicket.markup.html.WebPage$PageMapChecker"><!--/*--><![CDATA[/*><!--*/
> if (window.name=='' || window.name.indexOf('wicket') > -1) {
> window.name="wicket:default"; }
> /*-->]]>*/</script>
> exhibits the problem as valid XHTML disallows the $ within the id attribute.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira