Core.Web.DOM
Class Field Summary | |
---|---|
Internal | _focusPendingElement Temporary storage for the element about to be focused (for clients that require 'delayed' focusing). |
Class Method Summary | |
---|---|
Public | addEventListener() Adds an event listener to an object, using the client's supported event model. |
Public | createDocument() Creates a new XML DOM. |
Public | focusElement() Focuses the given DOM element. |
Internal | _focusElementImpl() Focus element implementation. |
Public | getChildElementByTagName() Returns the first immediate child element of parentElement with the specified tag name. |
Public | getChildElementsByTagName() Returns an array containing all immediate child element of parentElement with the specified tag name. |
Public | getEventOffset() Returns x/y coordinates of mouse relative to the element which fired an event. |
Public | getEventTarget() Returns the target of an event, using the client's supported event model. |
Public | getEventRelatedTarget() Returns the related target of an event, using the client's supported event model. |
Public | isAncestorOf() Determines if ancestorNode is or is an ancestor of
descendantNode .
|
Public | preventEventDefault() Prevents the default action of an event from occurring, using the client's supported event model. |
Public | removeAllChildren() Removes all child nodes from the specified DOM node. |
Public | removeEventListener() Removes an event listener from an object, using the client's supported event model. |
Public | removeNode() Removes the specified DOM node from the DOM tree. |
Internal | _removeNodeRecursive() Removes the specified DOM node from the DOM tree in a recursive manner, i. |
Public | stopEventPropagation() Stops an event from propagating ("bubbling") to parent nodes in the DOM, using the client's supported event model. |
eventSource
(Element)
- the event sourceeventType
(String)
- the type of event (the 'on' prefix should NOT be included
in the event type, i.e., for mouse rollover events, "mouseover" would
be specified instead of "onmouseover")eventListener
(Function)
- the event listener to be invoked when the event occursuseCapture
(Boolean)
- a flag indicating whether the event listener should capture
events in the final phase of propagation (only supported by
DOM Level 2 event model, not available on Internet Explorer)namespaceUri
(String)
- the unique URI of the namespace of the root element in
the created document (not supported for
Internet Explorer 6 clients, null may be specified for all clients)qualifiedName
(String)
- the name of the root element of the new document (this
element will be created automatically)element
(Element)
- the DOM element to focuselement
(Element)
- the DOM element to focusparentElement
(Element)
- the parent elementtagName
- the tag nameparentElement
(Element)
- the parent elementtagName
- the tag namee
(Event)
- the eventtarget
property of the event is returned.
On clients which support only the Internet Explorer event model,
the srcElement
property of the event is returned.
e
(Event)
- the eventrelatedTarget
property of the event is returned.
On clients which support only the Internet Explorer event model,
the toElement
property of the event is returned.
e
(Event)
- the eventancestorNode
is or is an ancestor of
descendantNode
.
ancestorNode
(Node)
- the potential ancestor nodedescendantNode
(Node)
- the potential descendant nodeancestorNode
is or is an ancestor of
descendantNode
e
(Event)
- the eventnode
(Node)
- the parent node whose children should be deletedeventSource
(Element)
- the event sourceeventType
(String)
- the type of event (the 'on' prefix should NOT be included
in the event type, i.e., for mouse rollover events, "mouseover" would
be specified instead of "onmouseover")eventListener
(Function)
- the event listener to be invoked when the event occursuseCapture
(Boolean)
- a flag indicating whether the event listener should capture
events in the final phase of propagation (only supported by
DOM Level 2 event model, not available on Internet Explorer)QUIRK_PERFORMANCE_LARGE_DOM_REMOVE
quirk.
node
(Node)
- the node which should be deletednode
(Node)
- the node which should be deletede
(Event)
- the event