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

Editorial: use leading and pending surrogate #309

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

annevk
Copy link
Member

@annevk annevk commented Apr 5, 2023

Arguably all the lead/trail byte stuff needs to be made consistent with this. Ugh.

Also, when I have more patience I should create an abstract operation for

0x10000 + ((leadingSurrogate − 0xD800) << 10) + (item − 0xDC00).


Preview | Diff

Copy link
Collaborator

@ricea ricea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only the title says "pending surrogate"; should that be "trailing surrogate" instead?


<li><p><a>Prepend</a> <var>item</var> to <var>input</var>.

<li><p>Return U+FFFD.
</ol>

<li><p>If <var>item</var> is in the range U+D800 to U+DBFF, inclusive, then set <a>pending high
surrogate</a> to <var>item</var> and return <a>continue</a>.
<li><p>If <var>item</var> is a <a>leading surrogate</a>, then set <a>leading surrogate</a> to
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think both these <a>leading surrogate</a> will link to the same place, which seems wrong.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed once whatwg/infra@0dba3a2 is indexed, but I should probably use explicit for as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants