Interface ScriptElement
- All Known Implementing Classes:
HtmlScript, SvgScript
public interface ScriptElement
An element which can handle scripts.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the attributecharset.Returns the value of the attributesrc.booleanReturnstrueif this script is deferred.booleanReturns if executed.voidINTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Marks this script as created by javascript.voidsetExecuted(boolean executed) Sets if executed.booleanINTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Returns true if this frame was created by javascript.
-
Method Details
-
isExecuted
boolean isExecuted()Returns if executed.- Returns:
- if executed
-
isDeferred
boolean isDeferred()Returnstrueif this script is deferred.- Returns:
trueif this script is deferred
-
setExecuted
void setExecuted(boolean executed) Sets if executed.- Parameters:
executed- if executed
-
getSrcAttribute
-
getCharsetAttribute
-
markAsCreatedByDomParser
void markAsCreatedByDomParser()INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Marks this script as created by javascript. Spec: The following scripts will not execute: scripts in XMLHttpRequest's responseXML documents, scripts in DOMParser-created documents, scripts in documents created by XSLTProcessor's transformToDocument feature, and scripts that are first inserted by a script into a Document that was created using the createDocument() API -
wasCreatedByDomParser
boolean wasCreatedByDomParser()INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
Returns true if this frame was created by javascript.- Returns:
- true or false
-