- From: <bugzilla@jessica.w3.org>
- Date: Tue, 20 May 2014 15:54:42 +0000
- To: public-webapps@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25830
Bug ID: 25830
Summary: [Custom]: Constructor function name is illegal by
definition.
Product: WebAppsWG
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Component Model
Assignee: dglazkov@chromium.org
Reporter: johnjbarton@johnjbarton.com
QA Contact: public-webapps-bugzilla@w3.org
CC: mike@w3.org, public-webapps@w3.org
Blocks: 14968
Two parts of the definition of Custom Elements conflict:
http://w3c.github.io/webcomponents/spec/custom/#dfn-custom-element-type
"The custom element type identifies a custom element interface and is a
sequence of characters that must match the NCName production, must contain a
U+002D HYPHEN-MINUS character, and must not contain any uppercase ASCII
letters."
http://w3c.github.io/webcomponents/spec/custom/#dfn-custom-element-constructor
"All custom elements must be constructable with a function object, called
custom element constructor. "
A name defined as containing a dash cannot be parsed as a function name in
JavaScript. Consequently the two definitions above prevent mocking of Custom
Elements in a way fully compatible with the standard.
--
You are receiving this mail because:
You are on the CC list for the bug.
Received on Tuesday, 20 May 2014 15:54:45 UTC