23.04.2013 Views

javascript

javascript

javascript

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

■ INDEX<br />

466<br />

document.styleSheets, 321<br />

DOM<br />

[] operator, 260<br />

Attr interface, 257<br />

Attr node, 256<br />

chaining nextSibling queries, 268<br />

CharacterData interface, 257<br />

childNodes, 260, 270<br />

coding cascade style, 264<br />

COM objects, 256<br />

commonly scripted nodes, table of, 259<br />

converting a NodeList to an array, 271<br />

converting a NodeList to an array for<br />

Internet Explorer, 273<br />

copying content, 293<br />

createElem(), 294–295<br />

creating Element or Text nodes, 288<br />

creating elements with a helper function,<br />

294<br />

CSSStyleDeclaration, 281–282, 284<br />

deleting content, 292<br />

descending and ascending the DOM tree,<br />

260<br />

differences in browser implementation, 255<br />

Document interface, 257, 289<br />

Document node, 256<br />

#document string, 259<br />

Document.createElement(), 289<br />

Document.createTextNode(), 289<br />

documentElement, 260<br />

DocumentType node, 260<br />

DOM interfaces for querying CSS, 307<br />

DOM objects, 256<br />

DOM-savvy browsers and events, 347<br />

Element interface, 257, 282<br />

Element node, 256<br />

Element.getAttribute(), 282<br />

Element.getAttributeNode(), 285<br />

Element.setAttribute(), 283<br />

enumerating attributes for an element, 286<br />

filterDefaultAttrNodes(), 287<br />

findClass(), code listing, 280<br />

finding elements by class, 279<br />

finding elements by id, 277<br />

finding elements by their tag names, 278<br />

firstChild, 270<br />

getElementById(), 277<br />

getElementsByTagName(), 278<br />

HTMLDivElement, 257<br />

HTMLElement, 257, 281<br />

HTMLStyleElement, 282<br />

interfaces, definition of, 256, 308<br />

interfaces, list of, 256<br />

item(), 261<br />

kinds of nodes, 256<br />

lastChild, 270<br />

merging adjacent Text nodes and deleting<br />

empty ones, 302<br />

moving laterally within the DOM tree, 268<br />

NamedNodeMap, 286<br />

nextSibling, 268<br />

Node interface, 257<br />

Node.appendChild(), 289<br />

Node.attributes, 286<br />

Node.cloneNode(), 293<br />

Node.insertBefore(), 289, 293<br />

Node.normalize(), 302<br />

Node.removeChild(), 292<br />

Node.replaceChild(), 290<br />

NodeList, 260<br />

nodes and, 255<br />

nodeType literals and constants for<br />

commonly scripted nodes, table of,<br />

258<br />

nodeType literals for commonly scripted<br />

nodes, table of, 258<br />

nodeType literals, nodeType constants, and<br />

nodeName values for commonly<br />

scripted nodes, table of, 259<br />

orderUL(), 296–297, 299<br />

parent, child, and sibling nodes, 260<br />

parentNode, 262<br />

previousSibling, 268–269<br />

querying an element in a NodeList, 260<br />

querying Attr nodes, 285<br />

querying attributes like a member, 281<br />

querying attributes with methods, 282<br />

querying the document member of window,<br />

257<br />

querying the nodeName member, 259

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!