notations (W3C DOM Core property)
notations collection is an unordered
list of every
Notation declared in the DTD.
Notations are used for declaring the format of an unparsed entity, or the
target of a processing instruction.
This collection is a
NamedNodeMap, primarily intended to be accessed by name.
It's also possible to access the items by their index in the map, however
the DOM does not specify what order they will appear.
As with all
named node maps,
notations is a
live collection, which means that changes to the
collection it represents are immediately reflected in the node map (as
opposed to it being a static snapshot).
Each member of this
collection is a
Notation node, and is
Even though a collection looks like an array, it isn't an array —
although you can iterate through it and refer to its members like an
array, you can't use
Array methods like
pop on it.
This collection is very sparsely supported, but there's no other way to retrieve this data. Just gotta hope you never need to!
Only Opera in XHTML mode or
XML1 and Internet
Explorer in XML provide data for the
notations collection; in
Firefox, Safari 3
and Safari 1.3 and 2 in XHTML mode or XML the
null; in other environments the
doctype itself is
DocumentType for details).
Internet Explorer in XML doesn't support the
array syntax for retrieving members by name (eg.
notations['sitepoint']); it only supports reference by
notations) or using the
getNamedItem method of
1 On XHTML pages served as