java.lang.Object | |||||
↳ | org.apache.xerces.dom.NodeImpl | ||||
↳ | org.apache.xerces.dom.ChildNode | ||||
↳ | org.apache.xerces.dom.ParentNode | ||||
↳ | org.apache.xerces.dom.ElementImpl | ||||
↳ | org.apache.html.dom.HTMLElementImpl |
Implements an HTML-specific element, an org.w3c.dom.Element that
will only appear inside HTML documents. This element extends ElementImpl
by adding methods for directly
manipulating HTML-specific attributes. All HTML elements gain access to
the id
, title
, lang
,
dir
and class
attributes. Other elements
add their own specific attributes.@xerces.internal
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.dom.NodeImpl
| |||||||||||
From interface
org.w3c.dom.Node
| |||||||||||
From interface
org.w3c.dom.TypeInfo
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.dom.ElementImpl
| |||||||||||
From class
org.apache.xerces.dom.ParentNode
| |||||||||||
From class
org.apache.xerces.dom.ChildNode
| |||||||||||
From class
org.apache.xerces.dom.NodeImpl
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor required owner document and element tag name.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Look up a single Attribute by name.
| |||||||||||
Introduced in DOM Level 2.
| |||||||||||
Look up a single Attribute by name.
| |||||||||||
Retrieves an Attr node by local name and namespace URI.
| |||||||||||
Returns a NodeList of all descendent nodes (children,
grandchildren, and so on) which are Elements and which have the
specified tag name.
| |||||||||||
Introduced in DOM Level 2.
| |||||||||||
Convenience method returns the form in which this form element is contained.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
org.apache.xerces.dom.ElementImpl
| |||||||||||
From class
org.apache.xerces.dom.ParentNode
| |||||||||||
From class
org.apache.xerces.dom.ChildNode
| |||||||||||
From class
org.apache.xerces.dom.NodeImpl
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
org.w3c.dom.Element
| |||||||||||
From interface
org.w3c.dom.Node
| |||||||||||
From interface
org.w3c.dom.NodeList
| |||||||||||
From interface
org.w3c.dom.TypeInfo
| |||||||||||
From interface
org.w3c.dom.events.EventTarget
| |||||||||||
From interface
org.w3c.dom.html.HTMLElement
|
Constructor required owner document and element tag name. Will be called by the constructor of specific element types but with a known tag name. Assures that the owner document is an HTML element.
owner | The owner HTML document |
---|---|
tagName | The element's tag name |
Look up a single Attribute by name. Returns the Attribute's string value, or an empty string (NOT null!) to indicate that the name did not map to a currently defined attribute.
Note: Attributes may contain complex node trees. This method returns the "flattened" string obtained from Attribute.getValue(). If you need the structure information, see getAttributeNode().
Introduced in DOM Level 2.
Retrieves an attribute value by local name and namespace URI.
namespaceURI | The namespace URI of the attribute to retrieve. |
---|---|
localName | The local name of the attribute to retrieve. |
Look up a single Attribute by name. Returns the Attribute Node, so its complete child tree is available. This could be important in XML, where the string rendering may not be sufficient information.
If no matching attribute is available, returns null.
Retrieves an Attr node by local name and namespace URI.
namespaceURI | The namespace URI of the attribute to retrieve. |
---|---|
localName | The local name of the attribute to retrieve. |
Returns a NodeList of all descendent nodes (children, grandchildren, and so on) which are Elements and which have the specified tag name.
Note: NodeList is a "live" view of the DOM. Its contents will change as the DOM changes, and alterations made to the NodeList will be reflected in the DOM.
tagName | The type of element to gather. To obtain a list of all elements no matter what their names, use the wild-card tag name "*". |
---|
Introduced in DOM Level 2.
Returns a NodeList of all the Elements with a given local name and namespace URI in the order in which they would be encountered in a preorder traversal of the Document tree, starting from this node.
namespaceURI | The namespace URI of the elements to match on. The special value "*" matches all namespaces. When it is null or an empty string, this method behaves like getElementsByTagName. |
---|---|
localName | The local name of the elements to match on. The special value "*" matches all local names. |
Convenience method returns the form in which this form element is contained. This method is exposed for form elements through the DOM API, but other elements have no access to it through the API.