Posted by Patient Guy on 11/07/05 09:27
While the values of 'id' and 'name' attributes include restrictions on the
use of characters such as beginning with a letter, the values of the
'class' attribute define no restriction as I can find.
Thus the use of:
class="thumbedImage 0.4"
is permitted, and could be used as an attribute in IMG elements to identify
images whose sizes I want to change dynamically with the loading of the
document body through a script function call, as the "onload" attribute is
not allowed for IMG elements in the specification.
(The script function essentially would get a list of image element nodes
from the document body, examine the class attribute values for the presence
of the correct values, and then make changes to those images having the
required values.)
Is there anyone whose understanding of the specification differs from this
understanding?
[Back to original message]
|