This topic has been closed. No new entries allowed.
Reason: You can now post comments on articles on Dev Opera
You need to be logged in to post in the forums. If you do not have an account, please sign up first.
46: Traversing the DOM
When you are using JavaScript to create dynamic effects on a web page, one of the most important things to understand is how to target the elements you want to affect. In this article we look at using JavaScript to select specific HTML elements in the HTML Document Object Model (or DOM).( Read the article )
The article should mention in the Direct access section the need to check for nodeType on arbitrary HTML, as some (most?) browsers treat an empty space between tags as a proper node.
Note to the editor: there's a spurious link to (ADD TITLE OF NEXT ARTICLE) and 2 typos: "and it’s less interesting sibling" & "a child of it’s own"
Note to the editor: there's a spurious link to (ADD TITLE OF NEXT ARTICLE) and 2 typos: "and it’s less interesting sibling" & "a child of it’s own"
Originally posted by dantesoft:
The article should mention in the Direct access section the need to check for nodeType on arbitrary HTML, as some (most?) browsers treat an empty space between tags as a proper node.
Can you provide me with a short text snippet to slot into the article?
Originally posted by dantesoft:
Note to the editor: there's a spurious link to (ADD TITLE OF NEXT ARTICLE) and 2 typos: "and it’s less interesting sibling" & "a child of it’s own"
All typos fixed - thanks so much guys.
Chris Mills
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com
Developer Relations Manager
Editor, dev.opera.com and labs.opera.com