This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 19525 - Number token is created with empty representation, but minimum is 1 character
Summary: Number token is created with empty representation, but minimum is 1 character
Status: RESOLVED INVALID
Alias: None
Product: CSS
Classification: Unclassified
Component: Syntax (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Tab Atkins Jr.
QA Contact: public-css-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-13 21:00 UTC by Brandon Frohs
Modified: 2012-10-16 00:34 UTC (History)
0 users

See Also:


Attachments

Description Brandon Frohs 2012-10-13 21:00:13 UTC
In the introduction of the "Tokenization" section, it is said that a number token has a representation of *1 or more* characters:

> Number, percentage, and dimension tokens have a representation composed of 1 or more character...

However, in the "Number state" section, the representation is set to an *empty* string:

> Create a number token with its representation initially set to the empty string.
Comment 1 Tab Atkins Jr. 2012-10-16 00:34:23 UTC
Yes, it's created with an initially empty representation, but it's never emitted with one.  Those definitions talk about the tokens you'll actually find in the token stream, not temporary ones under construction by the tokenizer.