Check if setting a parameter to a specific value is supported.
The node is a CDATASection
.
CDATA sections are used to escape blocks of text containing characters that
would otherwise be regarded as markup.
The CharacterData
interface extends Node with a set of
attributes and methods for accessing character data in the DOM.
Returns a duplicate of this node, i.e., serves as a generic copy
constructor for nodes.
This interface inherits from CharacterData
and represents the
content of a comment, i.e., all the characters between the starting '
<!--
' and ending '-->
'.
Receive notification of a comment.
Compares the reference node, i.e.
Test if a string is part of this DOMStringList
.
Test if a name is part of this NameList
.
Test if the pair namespaceURI/name is part of this
NameList
.
Creates an any node selector.
Creates an Attr
of the given name.
Creates an attribute condition
Creates an attribute of the given qualified name and namespace URI.
Creates a "begin hyphen" attribute condition
Creates a CDATASection
node whose value is the specified
string.
Creates a cdata section node selector.
Creates a child selector.
Creates a class condition
Creates a Comment
node given the specified string.
Creates a comment node selector.
Creates a conditional selector.
Creates a content condition
Creates a descendant selector.
Creates a sibling selector.
Creates a DOM Document object of the specified type with its document
element.
Creates an empty DocumentFragment
object.
Creates an empty DocumentType
node.
Creates an element of the type specified.
Creates an element of the given qualified name and namespace URI.
Creates an element selector.
Creates an EntityReference
object.
Creates a negative condition
Creates an negative selector.
Creates a "one of" attribute condition
Creates a "only one" child condition
Creates a "only one" type condition
Creates a positional condition
Creates a ProcessingInstruction
node given the specified
name and data strings.
Creates a processing instruction node selector.
Creates a pseudo class condition
Creates a pseudo element selector.
Creates an root node selector.
Creates a Text
node given the specified string.
Creates a text node selector.
Creates a new CSSException
Creates a new CSSException with an embeded exception.
Creates a new CSSException with a specific code.
Creates a new CSSException with an embeded exception and a specified
message.
Creates a new CSSException
Encapsulate a CSS parse error or warning.
Create a new CSSParseException from a message and a Locator.
Wrap an existing exception in a CSSParseException.
Create a new CSSParseException.
Create a new CSSParseException with an embedded exception.
Prefix to use to represent the default XML Namespace.
Remove a range of 16-bit units from the node.
If the document's schema is an XML Schema [
XML Schema Part 1]
, this constant represents the derivation by
restriction if complex types are involved, or a
restriction if simple types are involved.
If the document's schema is an XML Schema [
XML Schema Part 1]
, this constant represents the
union if simple types are involved.
The Document
interface represents the entire HTML or XML
document.
The node is a DocumentFragment
.
The node is contained by the reference node.
The node contains the reference node.
The two nodes are disconnected.
The node follows the reference node.
The determination of preceding versus following is
implementation-specific.
The second node precedes the reference node.
The node is a DocumentType
.
DocumentFragment
is a "lightweight" or "minimal"
Document
object.
This is the main interface that most CSS applications implement: if the
application needs to be informed of basic parsing events, it implements this
interface and registers an instance with the CSS parser using the
setCSSHandler method.
Each Document
has a doctype
attribute whose value
is either null
or a DocumentType
object.
The DOMConfiguration
interface represents the configuration
of a document and maintains a table of recognized parameters.
DOMError
is an interface that describes an error.
DOMErrorHandler
is a callback interface that the DOM
implementation can call when reporting errors that happens while
processing XML data, or when doing some other processing (e.g.
DOM operations only raise exceptions in "exceptional" circumstances, i.e.,
when an operation is impossible to perform (either for logical reasons,
because data is lost, or because the implementation has become unstable).
The DOMImplementation
interface provides a number of methods
for performing operations that are independent of any particular instance
of the document object model.
The DOMImplementationList
interface provides the abstraction
of an ordered collection of DOM implementations, without defining or
constraining how this collection is implemented.
This interface permits a DOM implementer to supply one or more
implementations, based upon requested features and versions, as specified
in .
DOMLocator
is an interface that describes a location (e.g.
If the specified range of text does not fit into a
DOMString
.
The DOMStringList
interface provides the abstraction of an
ordered collection of DOMString
values, without defining or
constraining how this collection is implemented.
Returns the parent selector.
Retrieves an attribute value by name.
Retrieves an attribute node by name.
Retrieves an Attr
node by local name and namespace URI.
Retrieves an attribute value by local name and namespace URI.
A NamedNodeMap
containing the attributes of this node (if
it is an Element
) or null
otherwise.
The absolute base URI of this node or null
if the
implementation wasn't able to obtain an absolute URI.
The byte offset into the input source this locator is pointing to or
-1
if there is no byte offset available.
Get the byte stream for this input source.
Get the character stream for this input source.
A NodeList
that contains all children of this node.
returns the error code for this exception.
The column number of the end of the text where the exception occurred.
The column number this locator is pointing to, or -1
if
there is no column number available.
Return the column number where the current document event ends.
Returns the condition to be applied on the simple selector.
An integer indicating the type of Condition
.
The character data of the node that implements this interface.
Returns the character data.
The content of this processing instruction.
Returns the character data.
Returns the string representation of the unit.
The Document Type Declaration (see DocumentType
)
associated with this document.
This is a convenience attribute that allows direct access to the child
node that is the document element of the document.
The location of the document or null
if undefined or if
the Document
was created using
DOMImplementation.createDocument
.
The configuration used when Document.normalizeDocument()
is invoked.
A method to request the first DOM implementation that supports the
specified features.
A method to request a list of DOM implementations that support the
specified features and versions, as specified in .
Returns the Element
that has an ID attribute with the
given value.
Returns a NodeList
of all the Elements
in
document order with a given tag name and are contained in the
document.
Returns a NodeList
of all descendant Elements
with a given tag name, in document order.
Returns a NodeList
of all the Elements
with a
given local name and namespace URI in document order.
Returns a NodeList
of all the descendant
Elements
with a given local name and namespace URI in
document order.
Get the character encoding for a byte stream or URI.
A NamedNodeMap
containing the general entities, both
external and internal, declared in the DTD.
Returns the internal exception if any, null otherwise.
This method returns a specialized object which implements the
specialized APIs of the specified feature and version, as specified
in .
This method returns a specialized object which implements the
specialized APIs of the specified feature and version, as specified
in .
The first child of this node.
Returns the first condition.
Returns the name of the function.
The DOMImplementation
object that handles this document.
An attribute specifying the encoding used for this document at the time
of the parsing.
An attribute specifying the encoding used for this entity at the time
of parsing, when it is an external parsed entity.
Returns the integer value.
The internal subset as a string, or null
if there is none.
The last child of this node.
The number of 16-bit units that are available through data
and the substringData
method below.
The number of DOMImplementation
s in the list.
The number of DOMString
s in the list.
The number of nodes in this map.
The number of pairs (name and namespaceURI) in the list.
The number of nodes in the list.
Returns the length of this media list
Returns the length of this selector list
An integer indicating the type of LexicalUnit
.
The line number of the end of the text where the exception occurred.
The line number this locator is pointing to, or -1
if
there is no column number available.
Return the line number where the current document event ends.
Returns the local part of the qualified name of this node.
The location of the error.
Returns the media associated to the input source or null
if media are currently unknown.
Returns the detail message of this throwable object.
An implementation specific string describing the error that occurred.
Returns the name of this attribute.
The name of DTD; i.e., the name immediately following the
DOCTYPE
keyword.
Returns the index
th name item in the collection.
Retrieves a node specified by name.
Retrieves a node specified by local name and namespace URI.
The namespace URI of this node, or null
if it is
unspecified (see ).
Returns the index
th namespaceURI item in the collection.
Returns the next value or null
if any.
The node immediately following this node.
The name of this node, depending on its type; see the table above.
A code representing the type of the underlying object, as defined above.
The node type to considered in the siblings list.
The value of this node, depending on its type; see the table above.
For unparsed entities, the name of the notation for the entity.
A NamedNodeMap
containing the notations declared in the
DTD.
The Document
object associated with this node.
The Element
node this attribute is attached to or
null
if this attribute is not in use.
Return the value of a parameter if known.
The list of the parameters supported by this
DOMConfiguration
object and for which at least one value
can be set by the application.
The function parameters including operators (like the comma).
Returns a string about which CSS language is supported by this
parser.
Returns the position in the tree.
The namespace prefix of this node, or null
if it is
unspecified.
Returns the previous value or null
if any.
The node immediately preceding this node.
Get just the product name.
The public identifier of the external subset.
The public identifier associated with the entity if specified, and
null
otherwise.
The public identifier of this notation.
The related DOMError.type
dependent data if any.
The related platform dependent exception if any.
The node this locator is pointing to, or null
if no node
is available.
The type information associated with this attribute.
The type information associated with this element.
Returns the second condition.
Returns the first selector.
An integer indicating the type of Selector
The severity of the error, either SEVERITY_WARNING
,
SEVERITY_ERROR
, or SEVERITY_FATAL_ERROR
.
Returns the simple selector.
Returns the simple selector.
True
if this attribute was explicitly given a value in
the instance document, false
otherwise.
Returns true
if the attribute must have an explicit value
in the original document, false
otherwise.
An attribute specifying whether error checking is enforced or not.
Returns the string value.
Returns a list of values inside the sub expression.
The system identifier of the external subset.
The system identifier associated with the entity if specified, and
null
otherwise.
The system identifier of this notation.
The target of this processing instruction.
Returns the
target
of the processing instruction.
This attribute returns the text content of this node and its
descendants.
Returns the title for this input source.
A DOMString
indicating which related data is expected in
relatedData
.
true
if the node should have the same node type (for
element, same namespaceURI and same localName).
The name of a type declared for the associated element or attribute,
or null
if unknown.
The namespace of the type declared for the associated element or
attribute or null
if the element does not have
declaration or if no namespace information is available.
true
if the child node list only shows nodes of the same
type of the selector (only elements, only PIS, ...)
Get the URI of the document where the exception occurred.
The URI this locator is pointing to, or null
if no URI is
available.
Get the URI for this input source.
Return the URI for the current document event.
Retrieves the object associated to a key on a this node.
The UTF-16, as defined in [Unicode] and Amendment 1 of [ISO/IEC 10646], offset into the input source this locator is pointing to or
-1
if there is no UTF-16 offset available.
On retrieval, the value of the attribute is returned as a string.
Returns the value of the attribute.
Get the basic version string for the current
xml-commons external sources release.
Get just the version number v.r.
Returns all text of Text
nodes logically-adjacent text
nodes to this node, concatenated in document order.
An attribute specifying, as part of the
XML declaration, the encoding of this document.
An attribute specifying, as part of the text declaration, the encoding
of this entity, when it is an external parsed entity.
An attribute specifying, as part of the
XML declaration, whether this document is standalone.
An attribute specifying, as part of the
XML declaration, the version number of this document.
An attribute specifying, as part of the text declaration, the version
number of this entity, when it is an external parsed entity.
Receive notification of an unknown rule t-rule not supported by this
parser.
Imports a node from another document to this document, without altering
or removing the source node from the original document; this method
creates a new copy of the source node.
Receive notification of a import statement in the style sheet.
If index or size is negative, or greater than the allowed value.
A single input source for a CSS source.
Zero-argument default constructor.
Create a new input source with a character stream.
Create a new input source with a URI.
Inserts the node newChild
before the existing child node
refChild
.
Insert a string at the specified 16-bit unit offset.
If an attempt is made to add an attribute that is already in use
elsewhere.
If a parameter or an operation is not supported by the underlying
object.
If an invalid or illegal character is specified, such as in an XML name.
If an attempt is made to modify the type of the underlying object.
If an attempt is made to use an object that is not, or is no longer,
usable.
This method checks if the specified namespaceURI
is the
default namespace or not.
This method returns if there is a derivation between the reference
type definition, i.e.
Tests whether two nodes are equal.
Returns whether this attribute is known to be of type ID (i.e.
Returns whether this node is the same node as the given one.
Tests whether the DOM implementation implements a specific feature and
that feature is supported by this node, as specified in .
Returns the index
th item in the collection.
Returns the index
th item in the collection.
Returns the index
th item in the map.
Returns the index
th item in the collection.
Returns the medium at the specified index, or null
if this
is not a valid index.
Returns the selector at the specified index, or null
if this
is not a valid index.
Objects implementing the NamedNodeMap
interface are used to
represent collections of nodes that can be accessed by name.
The NameList
interface provides the abstraction of an ordered
collection of parallel pairs of name and namespace values (which could be
null values), without defining or constraining how this collection is
implemented.
If an attempt is made to create or change an object in a way which is
incorrect with regard to namespaces.
Receive notification of an unknown rule t-rule not supported by this
parser.
If data is specified for a Node
which does not support
data.
If an attempt is made to modify an object where modifications are not
allowed.
The Node
interface is the primary datatype for the entire
Document Object Model.
The node is adopted, using Document.adoptNode()
.
The node is cloned, using Node.cloneNode()
.
The node is imported, using Document.importNode()
.
The node is renamed, using Document.renameNode()
.
The NodeList
interface provides the abstraction of an ordered
collection of nodes, without defining or constraining how this collection
is implemented.
Puts all Text
nodes in the full depth of the sub-tree
underneath this Node
, including attribute nodes, into a
"normal" form where only structure (e.g., elements, comments,
processing instructions, CDATA sections, and entity references)
separates Text
nodes, i.e., there are neither adjacent
Text
nodes nor empty Text
nodes.
This method acts as if the document was going through a save and load
cycle, putting the document in a "normal" form.
If an attempt is made to reference a Node
in a context
where it does not exist.
If the implementation does not support the requested type of object or
operation.
This interface represents a notation declared in the DTD.
Namespace URI to use to represent that there is no Namespace.
This condition checks exactly two conditions.
This selector matches any node.
This condition checks an attribute.
This condition checks if the value is in a hypen-separated list of values
in a specified attribute.
This selector matches only cdata node.
This selector matches a childhood relationship between two elements.
This condition checks for a specified class.
This selector matches only comment node.
This is a conditional selector.
This condition checks the content of a node.
This selector matches an arbitrary descendant of some ancestor element.
This selector matches two selectors who shared the same parent in the
document tree and the element represented by the first sequence
immediately precedes the element represented by the second one.
This selector matches only element node.
This condition checks an id attribute.
any identifier except inherit
.
This condition checks the language of the node.
This condition checks that a condition can't be applied to a node.
This selector matches only node that are different from a specified one.
If the operation is not supported
This condition checks for a value in a space-separated values in a
specified attribute
example:
[values~="10"]
This condition checks if a node is the only one in the node list.
This condition checks if a node is the only one of his type.
This condition checks one of two conditions.
This condition checks a specified position.
This selector matches only processing instruction node.
This condition checks for the link pseudo class.
This selector matches the 'first line' pseudo element.
This selector matches the root node.
sub expressions
(a)
(a + b)
(normal/none)
If an invalid or illegal string is specified
This selector matches only text node.
this error is unspecified.
This interface defines a selector.
The SelectorList interface provides the abstraction of an ordered collection
of selectors, without defining or constraining how this collection is
implemented.
Adds a new attribute node.
Set the byte stream for this input source.
Set the character stream for this input source.
The character data of the node that implements this interface.
The content of this processing instruction.
Allow an application to register a document event handler.
The location of the document or null
if undefined or if
the Document
was created using
DOMImplementation.createDocument
.
Set the character encoding, if known.
Allow an application to register an error event handler.
If the parameter isId
is true
, this method
declares the specified attribute to be a user-determined ID attribute
.
If the parameter isId
is true
, this method
declares the specified attribute to be a user-determined ID attribute
.
If the parameter isId
is true
, this method
declares the specified attribute to be a user-determined ID attribute
.
Allow an application to request a locale for errors and warnings.
Set the media for this input source.
Adds a node using its nodeName
attribute.
Adds a node using its namespaceURI
and
localName
.
The value of this node, depending on its type; see the table above.
Set the value of a parameter.
The namespace prefix of this node, or null
if it is
unspecified.
An attribute specifying whether error checking is enforced or not.
This attribute returns the text content of this node and its
descendants.
Set the title for this input source.
Set the URI for this input source.
Associate an object to a key on this node.
On retrieval, the value of the attribute is returned as a string.
An attribute specifying, as part of the
XML declaration, whether this document is standalone.
An attribute specifying, as part of the
XML declaration, the version number of this document.
The severity of the error described by the DOMError
is
error.
The severity of the error described by the DOMError
is
fatal error.
The severity of the error described by the DOMError
is
warning.
This interface is only for constraints on selectors.
Breaks this node into two nodes at the specified offset
,
keeping both in the tree as siblings.
Receive notification of the beginning of a style sheet.
Receive notification of the beginning of a font face statement.
Receive notification of the beginning of a media statement.
Receive notification of the beginning of a page statement.
Receive notification of the beginning of a rule statement.
Extracts a range of data from the node.
If an invalid or illegal string is specified.