Re: [whatwg/dom] Definition of valid shadow elements is ambiguous (#745)

Hey @annevk, I would love to help in editing the dom.bs.

BTW, for clarification the following should be done:

> this’s local name must be one of the following:
> - a valid custom element name.
> - `"article"`, `"aside"`, `"blockquote"`, `"body"`, `"div"`, `"footer"`, `"h1"`, `"h2"`, `"h3"`, `"h4"`, `"h5"`, `"h6"`, `"header"`, `"main"`, `"nav"`, `"p"`, `"section"`, or `"span"`.
> 
> If it's not, then throw a "NotSupportedError" DOMException.

A suggestion though (a less verbose option):

> If this’s local name is not an `"article"`, `"aside"`, `"blockquote"`, `"body"`, `"div"`, `"footer"`, `"h1"`, `"h2"`, `"h3"`, `"h4"`, `"h5"`, `"h6"`, `"header"`, `"main"`, `"nav"`, `"p"`, `"section"`, `"span"`, or any valid custom element name, then throw a "NotSupportedError" DOMException.

Do let me know which one should be used : )

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/745#issuecomment-639002136

Received on Thursday, 4 June 2020 17:39:46 UTC