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 10887 - "garbage characters" in non-negative integers should be clarified
Summary: "garbage characters" in non-negative integers should be clarified
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://dev.w3.org/html5/spec/common-m...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-30 18:43 UTC by Adrian Bateman [MSFT]
Modified: 2010-10-12 07:43 UTC (History)
4 users (show)

See Also:


Attachments

Description Adrian Bateman [MSFT] 2010-09-30 18:43:16 UTC
The spec says "Leading spaces are ignored. Trailing spaces and any trailing garbage characters are ignored." This should be changed to "Leading spaces are ignored. Trailing characters after any non-digit character outside the valid range are ignored."

This means that "10abc1" will be treated as "10" not as "101", for example.
Comment 1 Ian 'Hixie' Hickson 2010-10-05 18:05:27 UTC
The algorithm seems unambiguous; do we really want to make the introductory sentence pedantically correct as well? It would make it harder to read, would it really help at all?
Comment 2 Adrian Bateman [MSFT] 2010-10-05 20:28:56 UTC
Maybe just a clause pointing that these characters are defined in the algorithm below? This was reported to me from one of our reviews of the spec and was a stumbling block for the reader.
Comment 3 Ian 'Hixie' Hickson 2010-10-12 07:41:56 UTC
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are satisfied with this response, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:
   http://dev.w3.org/html5/decision-policy/decision-policy.html

Status: Partially Accepted
Change Description: see diff given below
Rationale: I'll just remove the sentence entirely.
Comment 4 contributor 2010-10-12 07:43:14 UTC
Checked in as WHATWG revision r5606.
Check-in comment: remove some non-normative text that was confusing some readers
http://html5.org/tools/web-apps-tracker?from=5605&to=5606