public final class ScriptElementSupport extends Object
ScriptElement
.Modifier and Type | Method and Description |
---|---|
static void |
executeScriptIfNeeded(ScriptElement script,
boolean ignoreAttachedToPage,
boolean ignorePageIsAncestor)
INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.
|
static boolean |
isJavaScript(String typeAttribute,
String languageAttribute)
Returns true if a script with the specified type and language attributes is actually JavaScript.
|
static void |
onAllChildrenAddedToPage(ScriptElement script,
boolean postponed)
Support method that is called from the (html or svg) script and the link tag.
|
public static void onAllChildrenAddedToPage(ScriptElement script, boolean postponed)
script
- the ScriptElement to work forpostponed
- whether to use PostponedAction
or nopublic static void executeScriptIfNeeded(ScriptElement script, boolean ignoreAttachedToPage, boolean ignorePageIsAncestor)
script
- the ScriptElement to work forignoreAttachedToPage
- don't do the isAttachedToPage checkignorePageIsAncestor
- don't do the element.getPage().isAncestorOf(element) checkpublic static boolean isJavaScript(String typeAttribute, String languageAttribute)
typeAttribute
- the type attribute specified in the script taglanguageAttribute
- the language attribute specified in the script tagCopyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.