Represents an element in an HTML or XML document.
![]() |
DOM Information
Inheritance Hierarchy
Members
The Element object has these types of members:
Events
The Element object has these events.
| Event | Description |
|---|---|
| MSPointerCancel |
Fires when the system cancels a pointer event. |
Methods
The Element object has these methods.
| Method | Description |
|---|---|
| msGetRegionContent |
Returns an array of Range instances corresponding to the content from the region flow that is positioned in the region. |
Properties
The Element object has these properties.
| Property | Description |
|---|---|
|
Provides a way to declare that an accelerator key has been assigned to an element. | |
|
Specifies the content zoom factor. | |
|
Determines if content fully fits into the region or not. |
Remarks
The Element interface represents an element in an HTML or XML document. Elements may have attributes associated with them; since the Element interface inherits from Node, the generic Node interface attribute attributes may be used to retrieve the set of all attributes for an element. There are methods on the Element interface to retrieve either an attribute object by name or an attribute value by name. In XML, where an attribute value may contain entity references, an attribute object should be retrieved to examine the possibly fairly complex sub-tree representing the attribute value. On the other hand, in HTML, where all attributes have simple string values, methods to directly access an attribute value can safely be used as a convenience.
Send comments about this topic to Microsoft
Build date: 11/28/2012
