[Project_owners] getElementById behavior in firefox 3
Myk Melez
myk at mozilla.org
Fri Mar 14 09:00:05 PDT 2008
Godmar Back wrote:
> Question: when should you use .setAttribute("x") vs. .x and does
> anybody know where this is documented/discussed?
>
The XUL Reference documents the attributes and properties of XUL
elements. For example, it says that the value property of the checkbox
element <http://developer.mozilla.org/en/docs/XUL:checkbox#p-value>
"gets and sets the value of the value attribute."
> Does it differ between XUL and HTML?
>
HTML also has both attributes and properties, and, if I remember
correctly, like XUL it is not entirely consistent about when to use
which ones.
-myk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mozdev.org/pipermail/project_owners/attachments/20080314/807edb1e/attachment.html
More information about the Project_owners
mailing list