Thread: XHTML Script
View Single Post
Old 12-05-2006, 07:39 AM   #1 (permalink)
http
Junior Member
 
Join Date: Dec 2006
Posts: 13
Default 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.
http is offline   Reply With Quote
Sponsored Links