summaryrefslogtreecommitdiffstats
path: root/parser/html
diff options
context:
space:
mode:
authorGaming4JC <g4jc@hyperbola.info>2020-01-05 12:26:22 -0500
committerGaming4JC <g4jc@hyperbola.info>2020-01-26 15:50:26 -0500
commit45a4aaf7e0e6586e45d8da0bcc88b9ec8f539967 (patch)
tree5cdb80f89ba3d0105ce58557dd69ebc8169b8bb0 /parser/html
parent49f597e7fb83dc96bfcf66073fe5bfbf994d71ba (diff)
downloadUXP-45a4aaf7e0e6586e45d8da0bcc88b9ec8f539967.tar
UXP-45a4aaf7e0e6586e45d8da0bcc88b9ec8f539967.tar.gz
UXP-45a4aaf7e0e6586e45d8da0bcc88b9ec8f539967.tar.lz
UXP-45a4aaf7e0e6586e45d8da0bcc88b9ec8f539967.tar.xz
UXP-45a4aaf7e0e6586e45d8da0bcc88b9ec8f539967.zip
Bug 1398401 - Add preference check for custom element setup.
Tag UXP Issue #1344
Diffstat (limited to 'parser/html')
-rw-r--r--parser/html/nsHtml5TreeOperation.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/parser/html/nsHtml5TreeOperation.cpp b/parser/html/nsHtml5TreeOperation.cpp
index 3877e01b8..57835bd36 100644
--- a/parser/html/nsHtml5TreeOperation.cpp
+++ b/parser/html/nsHtml5TreeOperation.cpp
@@ -439,7 +439,9 @@ nsHtml5TreeOperation::CreateElement(int32_t aNs,
false);
// Custom element setup may be needed if there is an "is" attribute.
- if (kNameSpaceID_None == nsuri && !prefix && nsGkAtoms::is == localName) {
+ if (nsContentUtils::IsWebComponentsEnabled() &&
+ kNameSpaceID_None == nsuri &&
+ !prefix && nsGkAtoms::is == localName) {
nsContentUtils::SetupCustomElement(newContent, &value);
}
}