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
Validator: support shadow slots #10345
Comments
Only allowed in AMP, not AMP4ADS. |
What about the slot attribute? I see it there on the page... Is it needed as well? |
Also it would be useful to have a more complete example of how it's going to be used in AMPHTML. E.g., I see the example in the doc under "Flattened DOM tree" (https://developers.google.com/web/fundamentals/getting-started/primers/shadowdom#lightdom) but there are obviously other things that aren't allowed either, e.g. putting some custom element name (in the example "better-button") that's not known to the validator. |
The
Not sure I understand this point. Could you clarify? The name of the element is |
Cool. I was just looking for a complete example and was referring to a snippet in the shadowdom primer. I'm happy with wahtever is needed. |
I see. Yeah, outside of AMP the app would use the
|
RE: |
Thanks for the fast turnaround! |
This should be live in validation in about an hour. |
See https://developers.google.com/web/fundamentals/getting-started/primers/shadowdom
An example:
The
slot
element is much like adiv
. All global attributes are allowed, such asid
andon
. The only specific attribute toslot
element is the optionalname
attribute.The text was updated successfully, but these errors were encountered: