Bug 1330900 - Implement <script nomodule>, r=bz
This patch implements: . noModule getter/setter for HTMLScriptElement . the nomodule attribute for HTMLScriptElement . and the logic in nsScriptLoader that denies the loading of a nomodule script . with tests
This commit is contained in:
@@ -220,6 +220,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