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 22041 - [HTML]: Constants can't be strings
Summary: [HTML]: Constants can't be strings
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Robin Berjon
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords: CR
Depends on: 21591
Blocks:
  Show dependency treegraph
 
Reported: 2013-05-15 12:43 UTC by Dominique Hazael-Massieux
Modified: 2013-07-12 22:26 UTC (History)
5 users (show)

See Also:


Attachments

Description Dominique Hazael-Massieux 2013-05-15 12:43:46 UTC
"const DOMString product = "Gecko"; // for historical reasons"

WebIDL doesn't allow string constants; this should presumably be a readonly DOMstring instead.
Comment 1 Travis Leithead [MSFT] 2013-07-12 22:26:01 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: Swapped for readonly attribute.

https://github.com/w3c/html/commit/aa8091f94546ca5500301053e4ea167d85891ae8