|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.html.DomNode
com.gargoylesoftware.htmlunit.html.DomNamespaceNode
com.gargoylesoftware.htmlunit.html.HtmlElement
com.gargoylesoftware.htmlunit.html.HtmlScript
public class HtmlScript
Wrapper for the html element "script".
When a script tag references an external script (with attribute src) it gets executed when the node
is added to the DOM tree. When the script code is nested, it gets executed when the text node
containing the script is added to the HtmlScript.
The ScriptFilter feature of NekoHtml can't be used because it doesn't allow immediate access to the DOM
(i.e. document.write("<span id='mySpan'/>"); document.getElementById("mySpan").tagName;
can't work with a filter).
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement |
---|
HtmlElement.MapEntryWrappingIterator |
Field Summary | |
---|---|
static java.lang.String |
TAG_NAME
The HTML tag represented by this element. |
Fields inherited from class com.gargoylesoftware.htmlunit.html.HtmlElement |
---|
ATTRIBUTE_NOT_DEFINED, ATTRIBUTE_VALUE_EMPTY |
Fields inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
PROPERTY_ELEMENT, READY_STATE_COMPLETE, READY_STATE_INTERACTIVE, READY_STATE_LOADED, READY_STATE_LOADING, READY_STATE_UNINITIALIZED |
Method Summary | |
---|---|
DomNode |
appendDomChild(DomNode node)
Executes the content as a script if said content is a text node. |
java.lang.String |
asText()
Returns a text representation of this element that represents what would be visible to the user if this page was shown in a web browser. |
java.lang.String |
getCharsetAttribute()
Return the value of the attribute "charset". |
java.lang.String |
getDeferAttribute()
Return the value of the attribute "defer". |
java.lang.String |
getEventAttribute()
Return the value of the attribute "event". |
java.lang.String |
getHtmlForAttribute()
Return the value of the attribute "for". |
java.lang.String |
getLanguageAttribute()
Return the value of the attribute "language". |
java.lang.String |
getSrcAttribute()
Return the value of the attribute "src". |
java.lang.String |
getTypeAttribute()
Return the value of the attribute "type". |
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNamespaceNode |
---|
getLocalName, getNamespaceURI, getPrefix, getQualifiedName, setPrefix |
Methods inherited from class com.gargoylesoftware.htmlunit.html.DomNode |
---|
addDomChangeListener, asXml, getAllHtmlChildElements, getByXPath, getChildIterator, getEndColumnNumber, getEndLineNumber, getFirstDomChild, getLastDomChild, getNextDomSibling, getNodeValue, getPage, getParentDomNode, getPreviousDomSibling, getReadyState, getScriptObject, getStartColumnNumber, getStartLineNumber, insertBefore, remove, removeAllChildren, removeDomChangeListener, replace, setNodeValue, setReadyState, setScriptObject |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TAG_NAME
Method Detail |
---|
public DomNode appendDomChild(DomNode node)
appendDomChild
in class DomNode
node
- the node to append
public java.lang.String asText()
DomNode
asText
in class DomNode
HtmlInput.asText()
public final java.lang.String getCharsetAttribute()
public final java.lang.String getDeferAttribute()
public final java.lang.String getEventAttribute()
public final java.lang.String getHtmlForAttribute()
public final java.lang.String getLanguageAttribute()
public final java.lang.String getSrcAttribute()
public final java.lang.String getTypeAttribute()
|
|||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |