mirror of
https://github.com/roytam1/UXP.git
synced 2026-05-27 03:49:06 +00:00
Bug 1330900 - Implement <script nomodule>
This patch implements: - noModule getter/setter for HTMLScriptElement - the nomodule attribute for HTMLScriptElement - the logic in nsScriptLoader that denies the loading of a nomodule script - tests Tag #618
This commit is contained in:
@@ -218,6 +218,18 @@ HTMLScriptElement::SetAsync(bool aValue, ErrorResult& rv)
|
||||
SetHTMLBoolAttr(nsGkAtoms::async, aValue, rv);
|
||||
}
|
||||
|
||||
bool
|
||||
HTMLScriptElement::NoModule()
|
||||
{
|
||||
return GetBoolAttr(nsGkAtoms::nomodule);
|
||||
}
|
||||
|
||||
void
|
||||
HTMLScriptElement::SetNoModule(bool aValue, ErrorResult& aRv)
|
||||
{
|
||||
SetHTMLBoolAttr(nsGkAtoms::nomodule, aValue, aRv);
|
||||
}
|
||||
|
||||
nsresult
|
||||
HTMLScriptElement::AfterSetAttr(int32_t aNamespaceID, nsIAtom* aName,
|
||||
const nsAttrValue* aValue, bool aNotify)
|
||||
|
||||
Reference in New Issue
Block a user