Posted by Herman on 11/22/34 11:49
Is it illegal to define your own attributes that are not defined by
HTML standards? It sounds stupid, but would this work:
<td id='cell' info='Information stored here'>
Then in javascript:
var info = document.getElementById('cell').info;
The attribute wouldn't have an effect on the element itself, but it
would act as an information holder for the particular element.
This idea to me screams conflict with W3 standards, but its an idea
that would seemingly make things easier for me.
Any thoughts?
Thanks a lot.
Navigation:
[Reply to this message]
|