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
Does ixml have to match the whole input? #24
Comments
It may be helpful, in discussions of this issue, to bear in mind what the spec currently says about it. The last item in the spec's definition of processor conformance reads:
That suggests to this reader that the question Steven asked when raising this issue already has an answer. He asked:
According to the current spec, I think the answer is:
Given that as the status quo, I suppose Steven's question (and thus this issue) should be read as a suggestion that we change some aspect of these rules, but without a specific proposal for what to change. None of the changes I have been able to imagine seem to me an improvement on the status quo, but I may be persuadable. |
My question was indeed a suggestion. My proposal is to add a distinguishing "fail" state, for instance "incomplete" or "prefix" that indicates that while the input was not fully consumed, there was a prefix of the input that satisfied the grammar (and here is the tree for that input). So "fail" gets split into two: |
This issue was discussed on the call of 8 February. The upshot was that it should continue to be legal for processors to offer a user option to report matches against a prefix of the input string, and that it should continue not to be required. The marking |
This involved the proposed text and discussion at https://www.w3.org/2022/02/15-ixml-minutes.html#t04 It also adds proposed text for @ handling on the root node.
New adopted text added to the spec, and issue closed. |
Is an ixml processor obliged to match the whole input against the specified grammar and flag an error otherwise? Can a conforming processor match a prefix of the input and return success? See
and ensuing threads.
The text was updated successfully, but these errors were encountered: