W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2014

[Bug 25830] New: [Custom]: Constructor function name is illegal by definition.

From: <bugzilla@jessica.w3.org>
Date: Tue, 20 May 2014 15:54:42 +0000
To: public-webapps@w3.org
Message-ID: <bug-25830-2927@http.www.w3.org/Bugs/Public/>

            Bug ID: 25830
           Summary: [Custom]: Constructor function name is illegal by
           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:

"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

"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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:24 UTC