diff options
author | Moonchild <moonchild@palemoon.org> | 2019-11-10 13:33:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-10 13:33:18 +0100 |
commit | ffd99743369997aea555d76867d90b3c601e9ed4 (patch) | |
tree | 0a1162b528b0801096d27eeed1e891a29437bd6c /dom/html/HTMLScriptElement.cpp | |
parent | 736d25cbec4541186ed46c935c117ce4d1c7f3bb (diff) | |
parent | 406326715dfb8342617df1e8985a296d0cd1b97c (diff) | |
download | UXP-ffd99743369997aea555d76867d90b3c601e9ed4.tar UXP-ffd99743369997aea555d76867d90b3c601e9ed4.tar.gz UXP-ffd99743369997aea555d76867d90b3c601e9ed4.tar.lz UXP-ffd99743369997aea555d76867d90b3c601e9ed4.tar.xz UXP-ffd99743369997aea555d76867d90b3c601e9ed4.zip |
Merge pull request #1278 from MoonchildProductions/js-modules
Partial solution for JS modules
Diffstat (limited to 'dom/html/HTMLScriptElement.cpp')
-rw-r--r-- | dom/html/HTMLScriptElement.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/dom/html/HTMLScriptElement.cpp b/dom/html/HTMLScriptElement.cpp index 94d09c12c..095b9b77d 100644 --- a/dom/html/HTMLScriptElement.cpp +++ b/dom/html/HTMLScriptElement.cpp @@ -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) |