Closed OrKoN closed 3 months ago
@OrKoN I would still propose that we fix it as suggested on https://github.com/w3c/webdriver-bidi/issues/635 by for now having an optional type
field added.
Having the processing in order of definition might require us to also check other CDDL definitions if those are valid.
@OrKoN I would still propose that we fix it as suggested on #635 by for now having an optional
type
field added.Having the processing in order of definition might require us to also check other CDDL definitions if those are valid.
I am afraid there is no way around processing groups in order since it is defined by the CDDL spec? I think this change does not block the more general fix by using the type attribute and it does not affect implementations that do not rely strictly on CDDL.
@whimboo it also makes the order alphabetical :)
The spec text defines that script.ContextTarget is matched first. The CDDL spec also picks groups in order. Therefore, the ContextTarget needs to be defined first in the group.
Preview | Diff