Members
-
<inner> Serializer :XMLSerializer
-
Used to serialize outerHTML of DOM elements in older (pre-HTML5) Gecko, Safari, and Opera browsers. Beware that XMLSerializer generates an XHTML string ( instead of ). It is noted here: http://stackoverflow.com/questions/1700870/how-do-i-do-outerhtml-in-firefox that some browsers (like older versions of Firefox) have problems with XMLSerializer, and an alternative, albeit more expensive option, is described.
Type:
- XMLSerializer
Methods
-
<inner> documentWindow(doc) → {Window}
-
Gets the window to which the given document belongs.
Parameters:
Name Type Description doc
Document Returns:
- Type
- Window
-
<inner> editingHost(node) → {boolean}
-
Checks whether the given element is an editing host.
Parameters:
Name Type Description node
Node Returns:
- Type
- boolean
-
<inner> ensureExpandoId()
-
<inner> isContentEditable(node) → {boolean}
-
Check if the given node's contentEditable attribute is `true`.
Parameters:
Name Type Description node
Element Returns:
- Type
- boolean
-
<inner> isEditable(node) → {boolean}
-
Checks whether the given element is editable. An element with the class "aloha-editable" is considered editable.
Parameters:
Name Type Description node
Node Returns:
- Type
- boolean
-
<inner> isEditingHost(node) → {boolean}
-
Checks whether the given node is content editable. An editing host is a node that is either an Element with a contenteditable attribute set to the true state, or the Element child of a Document whose designMode is enabled. An element with the class "aloha-editable" is considered an editing host.
Parameters:
Name Type Description node
Node Returns:
True if `node` is content editable.- Type
- boolean