Skip to content
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

The term "literal" is not defined, particularly as applied to a character #10595

Open
dirkf opened this issue Sep 1, 2024 · 2 comments
Open
Labels
clarification Standard could be clearer

Comments

@dirkf
Copy link

dirkf commented Sep 1, 2024

What is the issue with the HTML Standard?

Several times the specification uses the term literal to constrain a character, as in 2.3.5.9:

...
A literal U+0050 LATIN CAPITAL LETTER P character followed by ...

This usage is not directly defined in the document itself.

In a context (eg, 13.1.2.3 Attributes) where characters can be escaped or represented as &-entities, how should this use of literal be interpreted? Does it mean:

  • the constrained character, if not escaped
  • the constrained character, whether escaped or not
  • the constrained character, whether escaped or represented as an &-entity or not (I hope not)
  • etc?

If there is a consistent interpretation for all the cases where a character is constrained to be literal, I suggest that it be added to the document, or reference made to any external definition. Otherwise, the terminology should be adjusted as appropriate throughout the document with the addition of any resulting new or missing definitions.

@dirkf

This comment was marked as resolved.

@annevk annevk added the clarification Standard could be clearer label Sep 2, 2024
@annevk
Copy link
Member

annevk commented Sep 2, 2024

Per Infra we can replace such instances with

A U+0050 (P) followed by

and we typically do that when we refactor relevant sections. If anyone wants to do that proactively that is of course welcomed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Standard could be clearer
Development

No branches or pull requests

3 participants
@dirkf @annevk and others