You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are 4 tagspecs there. One for each combo of:
type=slides/type=carousel
lightbox/no-lightbox
The specific tagspec for type=carousel/no-lightbox specifies a dispatch_key which makes it the ONLY tagspec that is matched if type=carousel is present.
This means that the type=carousel/lightbox version is unreachable in the validator, except possibly to match certain guaranteed to error out cases, and in those case it will simply make error messages worse. In other words, it is impossible to create a document containing:
For context, understanding the correct behavior here would be very helpful. There are a couple other issues that could be considered blocking on this: #18091 and #21673
https://github.com/ampproject/amphtml/blob/master/extensions/amp-carousel/validator-amp-carousel.protoascii
There are 4 tagspecs there. One for each combo of:
type=slides
/type=carousel
lightbox
/no-lightbox
The specific tagspec for
type=carousel
/no-lightbox
specifies adispatch_key
which makes it the ONLY tagspec that is matched iftype=carousel
is present.This means that the
type=carousel
/lightbox
version is unreachable in the validator, except possibly to match certain guaranteed to error out cases, and in those case it will simply make error messages worse. In other words, it is impossible to create a document containing:Even though there is a tagspec written that would allow it.
There are two possible, and very simple fixes:
type=carousel
/lightbox
validator version if we don't want this combination to exist.dispatch_key
on thetype=carousel
/no-lightbox
version if we do want that combination to exist.It's unclear to me which option is the correct one.
The text was updated successfully, but these errors were encountered: