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

DOMStrings don't contain "characters" #322

Closed
bzbarsky opened this issue Nov 21, 2016 · 3 comments
Closed

DOMStrings don't contain "characters" #322

bzbarsky opened this issue Nov 21, 2016 · 3 comments

Comments

@bzbarsky
Copy link

There are various places in this specification that talk about things like "If the first character of details.total.amount.value is U+002D HYPHEN-MINUS" where the thing under conisideration (in this case details.total.amount.value) is a DOMString. DOMStrings contain code units, not characters. You either need to talk about the numeric values of those code units, or use USVString and talk about characters or something.

@domenic
Copy link
Collaborator

domenic commented Dec 13, 2016

I dunno this is pretty widespread in web specs. E.g. just Ctrl+Fing for "character" in the multipage HTML page I had open in one tab landed me on https://html.spec.whatwg.org/multipage/webappapis.html#dom-atob . Maybe we should move away from this term in general. Especially given HTML's confusing definition. But it's an understandable way of writing specs.

@bzbarsky
Copy link
Author

Maybe we need to define what "character" means for a DOMString somewhere, then. For ASCII cases it's not too bad.

@marcoscaceres
Copy link
Member

Blocked on whatwg/webidl#312

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

No branches or pull requests

3 participants