public final class ScriptElementSupport extends Object
ScriptElement
.Modifier and Type | Method and Description |
---|---|
static void |
executeScriptIfNeeded(DomElement element,
boolean ignoreAttachedToPage,
boolean ignorePageIsAncestor)
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)
super.onAllChildrenAddedToPage()
if you implement this method.element
- the elementpostponed
- whether to use PostponedAction
or nopublic static void executeScriptIfNeeded(DomElement element, boolean ignoreAttachedToPage, boolean ignorePageIsAncestor)
element
- the elementignoreAttachedToPage
- don't do the isAttachedToPage checkignorePageIsAncestor
- don't do the element.getPage().isAncestorOf(element) checkpublic 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–2024 Gargoyle Software Inc.. All rights reserved.