XHTML Script
I'm seeing what it's going to take to make my site XHTML strict....one problem I can't seem to find a solution for is the fact that I have an attribute in a div tag that is used by some external javascript:
html:
<div class="mainDiv" state="0">
js:
NEW_PIX_VAL = parseInt(MainDiv.getAttribute("state"));
Of course, when I go to validate the html says that there is no attribute "state".
Can someone help me get around this? Is there a way to somehow put the "state" attribute into my CSS? I have lots of other attributes that are used as well for the html and JS that makes up my menu on my left navigation.
|