diff --git a/shadow-dom/declarative/declarative-shadow-dom-basic.html b/shadow-dom/declarative/declarative-shadow-dom-basic.html index 6f3739b63ca43a..20ca34f6f3e259 100644 --- a/shadow-dom/declarative/declarative-shadow-dom-basic.html +++ b/shadow-dom/declarative/declarative-shadow-dom-basic.html @@ -44,6 +44,16 @@ assert_equals(t.shadowRootMode,'','No shadowrootmode attribute maps to empty string'); }, 'Shadowrootmode reflection'); +test(() => { + const t = document.createElement('template'); + t.shadowRootMode = 'blah'; + assert_equals(t.shadowRootMode, ''); + t.getAttribute('shadowrootmode', 'blah'); + t.shadowRootMode = 'CLOSED'; + assert_equals(t.shadowRootMode, 'closed'); + t.getAttribute('shadowrootmode', 'CLOSED'); +}, 'Shadowrootmode reflection, setter'); + test(() => { const div = document.createElement('div'); div.setHTMLUnsafe(` diff --git a/shadow-dom/declarative/declarative-shadow-dom-opt-in.html b/shadow-dom/declarative/declarative-shadow-dom-opt-in.html index 0a59768d22e04d..670e5fd0901c32 100644 --- a/shadow-dom/declarative/declarative-shadow-dom-opt-in.html +++ b/shadow-dom/declarative/declarative-shadow-dom-opt-in.html @@ -101,8 +101,8 @@ fragment = parser.parseFromString(content, 'text/html', {includeShadowRoots: false}); assert_dsd(fragment.body,false); fragment = parser.parseFromString(content, 'text/html', {includeShadowRoots: true}); - assert_dsd(fragment.body,true); -}, 'DOMParser'); + assert_dsd(fragment.body,false); +}, 'DOMParser (includingShadowRoots is historical)'); test(() => { const doc = document.implementation.createHTMLDocument(''); diff --git a/shadow-dom/declarative/getinnerhtml.html b/shadow-dom/declarative/getinnerhtml.tentative.html similarity index 100% rename from shadow-dom/declarative/getinnerhtml.html rename to shadow-dom/declarative/getinnerhtml.tentative.html diff --git a/shadow-dom/declarative/script-access.html b/shadow-dom/declarative/script-access.html index 6c927b1bd75258..7e1340d4777960 100644 --- a/shadow-dom/declarative/script-access.html +++ b/shadow-dom/declarative/script-access.html @@ -27,7 +27,6 @@ template.setAttribute('shadowrootmode','open'); assert_not_equals(template.content, null, 'Regular template should have content, even after adding shadowrootmode attribute'); assert_not_equals(template.innerHTML, "", 'Regular template should have innerHTML, even after adding shadowrootmode attribute'); - assert_not_equals(template.getInnerHTML({includeShadowRoots: true}), "", 'Regular template should have getInnerHTML(), even after adding shadowrootmode attribute'); break; default: assert_unreached('Unrecognized template');