summaryrefslogtreecommitdiffstats
path: root/layout/reftests/mathml
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-04-17 07:43:40 -0400
committerMatt A. Tobin <email@mattatobin.com>2020-04-17 07:43:40 -0400
commit80c024779929d44397a8c03d2fa7808f97f2c21a (patch)
treee961240621bd07d87e8a45e3006da7c02c890306 /layout/reftests/mathml
parent6d76ab9b6c19d0829c343e1bc3cd7865221d64ba (diff)
downloadUXP-80c024779929d44397a8c03d2fa7808f97f2c21a.tar
UXP-80c024779929d44397a8c03d2fa7808f97f2c21a.tar.gz
UXP-80c024779929d44397a8c03d2fa7808f97f2c21a.tar.lz
UXP-80c024779929d44397a8c03d2fa7808f97f2c21a.tar.xz
UXP-80c024779929d44397a8c03d2fa7808f97f2c21a.zip
Issue #1375 - Fix IsWebComponentsEnabled checks
Diffstat (limited to 'layout/reftests/mathml')
-rw-r--r--layout/reftests/mathml/shadow-dom-1.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/layout/reftests/mathml/shadow-dom-1.html b/layout/reftests/mathml/shadow-dom-1.html
index 547253a3c..bbf27069f 100644
--- a/layout/reftests/mathml/shadow-dom-1.html
+++ b/layout/reftests/mathml/shadow-dom-1.html
@@ -7,9 +7,11 @@
<script>
function insertShadowMathML() {
var x = document.getElementById("x");
- x.createShadowRoot();
- x.shadowRoot.innerHTML =
- '<math><msup><mi>X</mi><mi>X</mi></msup></math>';
+ if (x.createShadowRoot) {
+ x.createShadowRoot();
+ x.shadowRoot.innerHTML =
+ '<math><msup><mi>X</mi><mi>X</mi></msup></math>';
+ }
document.documentElement.removeAttribute("class");
}
window.addEventListener("MozReftestInvalidate", insertShadowMathML, false);