Selecting Children in the DOM.
Firefox evaluates any white space in the element as a text node, so if your HTML is like this:
<div id="theDiv"> <a href="http://www.wired.com" id="theA">Wired</a> </div>then firstChild will be the line break. Other browsers will return the anchor element as the firstChild. Blech.
theAnchor = document.getElementById("theDiv").getElementsByTagName("*"); theHref = theAnchor.getAttribute("href");since the first element inside theDiv is the anchor.