[whatwg/dom] Reset declarative to false when calling attachShadow (PR #1245)

This was an oversight in the spec, and this matches browser behavior. This makes a second call to `attachShadow()` throw.

This test already tests this condition: shadow-dom/declarative/declarative-shadow-dom-attachment.html

Closes https://github.com/whatwg/dom/issues/1234

@emilio 

You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/dom/pull/1245

-- Commit Summary --

  * Reset declarative to false when calling attachShadow

-- File Changes --

    M dom.bs (12)

-- Patch Links --

https://github.com/whatwg/dom/pull/1245.patch
https://github.com/whatwg/dom/pull/1245.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1245
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/1245@github.com>

Received on Tuesday, 9 January 2024 21:29:22 UTC