Re: [WICG/webcomponents] [idea] making builtin elements more like custom elements (#785)

trusktr left a comment (WICG/webcomponents#785)

> The way built-in elements work is similar to the following code:

By the way I know that's how it works, but it is not very useful, and is not aligned with other aspects of web APIs: it has always been easy to patch global APIs, but for some reason this one is arbitrarily blocked. So my point is, that the `delete` trick is unusual, and it would be much nicer if it was a regular (patchable) method.

This is overly defensive programming. There are plenty of ways to make bad slow code, and this one-off exception isn't really helping everyone.

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

Message ID: <WICG/webcomponents/issues/785/2833644946@github.com>

Received on Sunday, 27 April 2025 21:18:21 UTC