public class HTMLCommentElement extends Comment
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
Constructor and Description |
---|
HTMLCommentElement()
Creates an instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
getAttribute(String attributeName,
Integer flags)
Returns the value of the specified attribute.
|
Object |
getAttributeNode(String attributeName)
Gets the attribute node for the specified attribute.
|
Object |
getClassName_js()
Returns the class defined for this element.
|
Object |
getDocument()
Returns the document of this element.
|
String |
getId()
Returns the element ID.
|
String |
getInnerText()
Gets the innerText attribute.
|
Object |
getTagName()
Returns the tag name of this element.
|
String |
getText()
Returns the text of this element.
|
void |
setInnerText(String value)
Currently does nothing.
|
appendData, deleteData, getData, getLength, insertData, replaceData, setData, substringData
appendChild, asJavaScriptException, attachEvent, cloneNode, compareDocumentPosition, contains, detachEvent, getAttributes, getBaseName, getChildNodes, getFirstChild, getJavaScriptNode, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParent, getParentElement, getParentNode, getPrefix, getPreviousSibling, getTextContent, getXml, hasChildNodes, insertBefore, insertBeforeImpl, isSameNode, normalize, removeChild, replaceChild, setNodeValue, setTextContent
addEventListener, clearEventListenersContainer, dispatchEvent, executeEvent, fireEvent, getEventHandler, getEventHandlerProp, getEventListenersContainer, hasEventHandlers, removeEventListener, setEventHandler, setEventHandlerProp
clone, defineFunctionProperties, defineProperty, equivalentValues, get, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getStartingScope, getTransformerScriptableFor, getWindow, getWindow, getWithPreemption, hasInstance, initParentScope, isReadOnlySettable, makeScriptableFor, setCaseSensitive, setClassName, setDomNode, setDomNode, setHtmlElement, setParentScope
applyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkPropertyChange, checkPropertyDefinition, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getSlot, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, has, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setExternalArrayData, setGetterOrSetter, setPrototype, size
public String getId()
public Object getClassName_js()
getClassName_js
in class Comment
public Object getTagName()
getTagName
in class Comment
public String getText()
public Object getDocument()
getDocument
in class Comment
public Object getAttributeNode(String attributeName)
getAttributeNode
in class Comment
attributeName
- the name of the attribute to retrievepublic Object getAttribute(String attributeName, Integer flags)
getAttribute
in class Comment
attributeName
- attribute nameflags
- IE-specific flags (see the MSDN documentation for more info)null
if the attribute is not definedpublic String getInnerText()
getInnerText
in class Comment
public void setInnerText(String value)
setInnerText
in class Comment
value
- the new value for the contents of this nodeCopyright © 2002–2015 Gargoyle Software Inc.. All rights reserved.