Articles by John Resig
-
DOM Traversal in Firefox 3.5
Firefox 3.5 includes new support for two W3C DOM traversal specifications. The first, the Element Traversal API, focuses on making element-by-element traversal easier, the second, the NodeIterator interface which makes finding all node types much easier. Element Traversal API The purpose of the Element Traversal API is to make it easier for developers to traverse […]
-
DOM selectors API in Firefox 3.5
The Selectors API recommendation, published by the W3C, is a relatively new effort that gives JavaScript developers the ability to find DOM elements on a page using CSS selectors. This single API takes the complicated process of traversing and selecting elements from the DOM and unifies it under a simple unified interface. Out of all […]