-
Notifications
You must be signed in to change notification settings - Fork 44
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
Should FragmentDirective know about TextDirective? #220
Labels
Comments
bokand
added a commit
to bokand/ScrollToTextFragment
that referenced
this issue
Nov 30, 2023
The grammar is now provided solely as a convenience so this makes the section non-normative. Also fixes it so that UnknownDirective doesn't subsume TextDirective. Fixes WICG#220
@annevk I'm not sure what you mean by "allows them to get out of sync"? But I do see it's wrong that UnknownDirective covers TextDirective. b6381a1 addresses it (as well as making the grammar non-normative) by making the two disjoint:
will that change resolve this issue? |
bokand
added a commit
to bokand/ScrollToTextFragment
that referenced
this issue
Dec 13, 2023
The grammar is now provided solely as a convenience so this makes the section non-normative. Also fixes it so that UnknownDirective doesn't subsume TextDirective. Fixes WICG#220
bokand
added a commit
that referenced
this issue
Dec 13, 2023
* Specify parsing imperatively This commit overhauls the parsing steps to avoid using the EBNF grammar for validity, instead specifying that imperatively. It also moves parsing to happen earlier in the process so that we pass around parsed Text Directive objects. Also makes the steps more precise, referring to infra types and correctly decoding the strings. Fixes #221 Fixes #230 * Fix and make grammar non-normative The grammar is now provided solely as a convenience so this makes the section non-normative. Also fixes it so that UnknownDirective doesn't subsume TextDirective. Fixes #220
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I guess currently UnknownDirective is a superset of TextDirective but the current setup allows for them to get out of sync which doesn't seem desirable.
The text was updated successfully, but these errors were encountered: