public final class ScriptElementSupport extends Object
ScriptElement
.Modifier and Type | Method and Description |
---|---|
static void |
executeScriptIfNeeded(DomElement element)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
static boolean |
isJavaScript(DomElement element,
String typeAttribute,
String languageAttribute)
Returns true if a script with the specified type and language attributes is actually JavaScript.
|
static void |
onAllChildrenAddedToPage(DomElement element,
boolean postponed)
Lifecycle method invoked after a node and all its children have been added to a page, during
parsing of the HTML.
|
public static void onAllChildrenAddedToPage(DomElement element, boolean postponed)
element
- the elementpostponed
- whether to use PostponedAction
or nopublic static void executeScriptIfNeeded(DomElement element)
element
- the elementpublic static boolean isJavaScript(DomElement element, String typeAttribute, String languageAttribute)
element
- the elementtypeAttribute
- the type attribute specified in the script taglanguageAttribute
- the language attribute specified in the script tagCopyright © 2002–2020 Gargoyle Software Inc.. All rights reserved.