Re: [WICG/webcomponents] Creating non-ugraded defined custom element : `createElement(tagname, {upgrade:false})` (Issue #1097)

denis-migdal left a comment (WICG/webcomponents#1097)

> I don't think `HTMLUnknownElement` is ever used for something that has a valid custom element name (and is in the correct namespace)?

Indeed, I may have misread the MDN documentation.

It seems the best way would then to use `elem.constructor.name === "HTMLElement"` to check if an element has been upgraded.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/1097#issuecomment-2665328990
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/1097/2665328990@github.com>

Received on Tuesday, 18 February 2025 11:12:05 UTC