Re:OOHtml – Object-Oriented HTML Implementation
by toastal on Tuesday February 13, 2024 @04:01AM
(#39355872)
inherit* from
to leave* the built-in prototypes alone
Re:OOHtml – Object-Oriented HTML Implementation
by phrasecode on Tuesday February 13, 2024 @04:48PM
(#39363300)
Monkey-patching native DOM APIs is really how polyfills are made. This way, people are able to simulate an idea and have a more productive conversation around it. All with a view to having it succeeded by a native implementation.
I could be misreading this, but it looks like this project is overriding the UA’s `querySelector` family of methods, which doesn’t quite sit right. I thought it was a best practice to level the built-in prototypes alone.