@jgm @Hoylen Thanks for your inputs! (No pun intended.)
It seems we have an obvious conclusion to “should parsers give up”: they shouldn’t—all inputs are valid. So I’ve created a pull request to clarify the spec.
As for null (U+0000
) characters:
That seems to be the current situation. I’m OK with that. “The parser always succeeds” is a really strong guarantee. I wouldn’t want to dull it by making it conditional on whether the input includes null characters.
I wondered that too. But since it’s a separate issue, let’s take that to a new topic.