-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Web component semantics #127
Comments
I will probably favor |
On the pro-
|
On the pro-
|
It also feels overly complicated to have 2 separate ways to achieve the same thing, so simplification is good. And no need to attach a shadow root just to encapsulate semantics is a pro for me too |
I don't quite follow. Any chance you could elaborate a little on this? |
Well, unless I'm completely misreading everything which is quite possible, with semantics only ever being defined by the element and it's object, it's directly familiar with what we have right now. An element defines it's semantic through attributes and it's API. By placing some of an elements semantic meaning, or at least a way of defining it, onto it's Hopefully that makes some sense |
@SiTaggart That makes sense - I think the issue is with explaining how setting something on a completely separate node affects the host element, is that right? Thanks for clarifying! |
@alice |
+1 for |
Yup, that sums it up nicely @alice |
I used to favor |
|
Should I be able to set |
@robdodson Check out the discussion over on WICG/webcomponents#762 |
WICG/webcomponents#758 raises some doubts about using
ShadowRoot
to encapsulate semantics for web components.I've written up two versions of some spec changes to try and formalise some of the ideas discussed in the explainer around web component semantics:
ShadowRoot
ElementSemantics
objectWould appreciate some guidance/discussion around these two options!
The text was updated successfully, but these errors were encountered: