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 21589 - SelectionMode enum should not have a trailing comma
Summary: SelectionMode enum should not have a trailing comma
Status: RESOLVED DUPLICATE of bug 17508
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: WebIDL (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: ---
Assignee: Cameron McCormack
QA Contact: public-webapps-bugzilla
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard: [v1]
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-05 11:18 UTC by contributor
Modified: 2013-08-03 08:17 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2013-04-05 11:18:46 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-controls-and-forms.html
Multipage: http://www.whatwg.org/C#textFieldSelection
Complete: http://www.whatwg.org/c#textFieldSelection

Comment:
SelectionMode enum should not have a trailing comma

Posted from: 81.242.195.27 by ms2ger@gmail.com
User agent: Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20130301 Firefox/22.0
Comment 1 Ms2ger 2013-04-05 11:19:02 UTC
... because WebIDL doesn't allow that syntax.
Comment 2 Ian 'Hixie' Hickson 2013-04-11 22:29:20 UTC
heycam, can we allow trailing commas on enums? It would make maintenance easier.
Comment 3 Nils Barth 2013-05-24 06:01:27 UTC
(In reply to comment #2)
> heycam, can we allow trailing commas on enums? It would make maintenance
> easier.

Hi Hixie, I've open a bug to allow trailing commas in all lists in Web IDL:
Bug 22156 - Allow trailing commas in Web IDL lists
Comment 4 Nils Barth 2013-05-24 06:51:13 UTC
For reference, an earlier bug requesting trailing commas in enum lists is:
Bug 17508 - Let enum lists end with a comma
Comment 5 Ms2ger 2013-05-24 07:50:01 UTC
Nils, please watch out with changing components.
Comment 6 Nils Barth 2013-05-24 09:53:30 UTC
(In reply to comment #5)
> Nils, please watch out with changing components.

Oops, sorry about that!
(Didn't notice I was changing anything; I'll be careful in future.)
Comment 7 Cameron McCormack 2013-08-03 08:17:19 UTC
I've allowed this now in bug 17508.  I'll interpret this bug as requesting such on Web IDL and marked it a dupe.

*** This bug has been marked as a duplicate of bug 17508 ***