Element object

This topic has not yet been rated - Rate this topic

Represents an element in an HTML or XML document.

DOM Information

Inheritance Hierarchy

 Node
   Element

Members

The Element object has these types of members:

Events

The Element object has these events.

EventDescription
MSPointerCancel

Fires when the system cancels a pointer event.

 

Methods

The Element object has these methods.

MethodDescription
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.

PropertyDescription

msContentZoomFactor

Specifies the content zoom factor.

msRegionOverflow

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.

 

 

Build date: 11/28/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.