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 13671 - http://html5.org/tools/web-apps-tracker?from=6359&to=6360 - shouldn't it be "If <var title="">n</var> is greater than *zero*" ? (step 4 says "If n is zero...")
Summary: http://html5.org/tools/web-apps-tracker?from=6359&to=6360 - shouldn't it be "...
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-04 09:02 UTC by contributor
Modified: 2011-08-07 23:02 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2011-08-04 09:02:33 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/complete/common-dom-interfaces.html
Multipage: http://www.whatwg.org/C#htmloptionscollection-0
Complete: http://www.whatwg.org/c#htmloptionscollection-0

Comment:
http://html5.org/tools/web-apps-tracker?from=6359&to=6360 - shouldn't it be
"If <var title="">n</var> is greater than *zero*" ? (step 4 says "If n is
zero...")

Posted from: 85.227.153.57 by simonp@opera.com
User agent: Opera/9.80 (Macintosh; Intel Mac OS X 10.5.8; U; en) Presto/2.9.168 Version/11.50
Comment 1 Simon Pieters 2011-08-04 09:12:36 UTC
let's say you have <select></select> and do select[1] = option;
length is 0, index is 1, n is 1
n is not greater than 1, and it's not zero, so per spec it does nothing
the spec is wrong in another way too
it says to append n new option elements, but it should append n-1 new option elements and then append value

http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1093
Comment 2 Ian 'Hixie' Hickson 2011-08-06 07:12:29 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: Accepted
Change Description: see diff given below
Rationale: Concurred with reporter's comments.
Comment 3 contributor 2011-08-06 07:13:51 UTC
Checked in as WHATWG revision r6383.
Check-in comment: Fix my bogus maths.
http://html5.org/tools/web-apps-tracker?from=6382&to=6383