Re: [w3c/webcomponents] Extending from a component with shadow dom may be difficult. (#643)

FWIW, I‘d agree with @hayatoito that this isn’t really a Custom Elements or Shadow DOM problem—it’s a generalized problem with inheritance. It’s usually called the “fragile base class” problem and there’s lots of literature on it.

@rniwa actually brought this issue up specifically as a reason for not wanting to implement inheritance of built-in elements last year: https://github.com/w3c/webcomponents/issues/509#issuecomment-230700060 (He focused on “Liskov Substitution,” which is a fairly specific flavor of the broader “fragile base class” issue.) The browser isn’t a dependency your code controls, so it can’t feasibly provide many of the tools and signals, like semantic versioning, that are meant to address the problem.

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

Received on Wednesday, 14 June 2017 19:08:01 UTC