1. Document Object Model Requirements
1.2 Structure Navigation
This refers to the navigation around a document, such as
finding the parent of a given element, or what children
elements a given parent element contains.
1.2.1 General Requirements
- All document content, including elements and
attributes, will be programmatically accessible and
manipulable.
- Navigation from any element to any other
element will be possible, except where such
navigation would compromise security.
- There will be a way to uniquely and
reproducibly enumerate the structure of static
documents.
- There will be a way to query for elements and
attributes, subject to security and privacy
considerations.
- Basic low-level functions (get first, get next,
etc.) will be provided, along with convenience
functions that build upon them, but have a
consistent access method.
1.2.2 HTML Requirements
These are specific to HTML documents.
- All elements known to the user agent are
exposed.
- Unknown tags and attributes are exposed.
- Implied elements are exposed even if not
explicitly defined in the document (e.g., HTML,
HEAD, BODY)
- There will be guidelines for the inclusion of
new elements and attributes in the object model