XML DOMLesson 35Free preview
DOM Node List
This lesson is part of XML · All levels
Summary
Selection results such as getElementsByTagName or childNodes are a set of nodes that are accessed based on index and length. Each member is taken with item(i) or square brackets notation. Note that HTMLCollection and NodeList can be live, meaning that they change when a document is modified.
Key points
- A group of nodes has a length property
- Members are accessed by item(i) or notation [i]
- HTMLCollection and NodeList can be live
- Repetitions for the most common classical processes are set of nodes
- ChildNodes return all types of nodes including text
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.