MDN’s new design is in Beta! A sneak peek:


I use ELEMENT_NODE instead of 1 in my code. for instance, if (element.nodeType == ELEMENT_NODE) instead of if (element.nodeType == 1). but it doesn't work, any idea ? (if (element.nodeType == 1) works perfectly)

-- Arthit 09:03, 17 Aug 2005 (PDT)

It's a member of node interface, not a global constant. So you need to access it using Node.ELEMENT_NODE or someNode.ELEMENT_NODE. --Nickolay 09:10, 17 Aug 2005 (PDT)
[update] I updated the page to be less confusing. --Nickolay 09:23, 17 Aug 2005 (PDT)

Removed the table

I removed the table markup made by Callek, because it didn't look good, and the markup was awful. Replaced with a simple pre-formatted block. --Nickolay 09:23, 17 Aug 2005 (PDT)

Sounds good to me, when I initially did that table it was not as bad as it is with the current skin, and I was more-or-less migrating off of the original doc there, looks good the way you touched it up, thanks. --Callek 19:32, 17 Aug 2005 (PDT)

Document Tags and Contributors

 Contributors to this page: Callek, Nickolay, Arthit
 Last updated by: Callek,