[jQuery] dashes in attribute names illegal?
Hello list,
I use custom attributes in my html tags to hook js behavior into the DOM
(eg, x-hover="1" and the like). Using raw statements like
element.getAttribute('x-hover')
functions properly in all modern browsers. The cssQuery.js package I've
used in the past also had no trouble with this naming convention.
jquery does not seem to like dashes in attribute names, however.
My question is are dashes illegal according to some W3C DOM spec that
I'm not aware of, or was this just an edge case that was overlooked when
jquery was written? I've started looking through the source for where
the attribute names are handled, but haven't located it just yet.
-Stephen
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/