Simon Pieters [mailto:[EMAIL PROTECTED] wrote:
>I understand that IE works this way internally, but this behavior -- that
>all attributes are reflected by DOM attributes and that any DOM attributes
>(or JS properties) on elements also turn into real attributes -- is not
>backed up by any DOM spec, and Opera, Safari and Firefox don't do this. In
>those browsers, unknown attributes are only accessible with
>getAttribute(), and saying elm.foobar = 'x' just creates a JS property
>"foobar" without adding/changing the "foobar" attribute on the element.

IIRC, this does not necessarily happen with unknown attributes - only with 
known attributes.  If it's a known attribute, it gets reflected into the DOM 
with camelCasing.  If it's an unknown/unrecognized attribute, it is only 
accessible via getAttribute().

-Chris

Reply via email to