'Tidy: character ";" not allowed in attribute specification list'에 해당되는 글 1건

  1. 2010.12.21 Tidy: character ";" not allowed in attribute specification list
98..Etc/70.JEUS2010. 12. 21. 09:48
반응형

Tidy: character ";" not allowed in attribute specification list

Possible Cause:

Unescaped JavaScript generates multiple validation errors, this is one of them.

Example:


잘못된 예
<script language="javascript">
for(x=0;x<item.length;x++){
    //
}
</script>

올바른 예
<script language="javascript">
//<![CDATA[
for(x=0;x<item.length;x++){
    //
}
//]]>
</script>

Solution:

Wrap the JavaScript code in CDATA; Hide the CDATA from JavaScript with a // comment.

References:

Posted by 1010