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 18776 - substeps 3-5 of the prototype construction algorithm should be main steps 4-6
Summary: substeps 3-5 of the prototype construction algorithm should be main steps 4-6
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 17103
  Show dependency treegraph
 
Reported: 2012-09-05 00:19 UTC by Scott Miles
Modified: 2012-10-24 19:46 UTC (History)
0 users

See Also:


Attachments

Description Scott Miles 2012-09-05 00:19:37 UTC
Looks like steps 3-5 of the prototype construction algorithm (Section 5) should be part of the main steps (aka need to be outdented).

Suspect it's supposed to read like this:

1. If EXTENDS is an invalid HTML tag name, throw an InvalidCharacterError exception.
2. If EXTENDS is a custom element name name, let BASE be the element prototype of the custom DOM element with the custom element name of EXTENDS
3. Otherwise:
    1. If EXTENDS is defined in HTML specification or other applicable specifications, let BASE be the interface prototype object for the element type corresponding to the HTML tag name of EXTENDS
    2.Otherwise, throw a NotSupportedError exception.
4. Create a new object that implements BASE
5. Let PROTOTYPE be this new object
6. If PROPERTIES is present and not undefined, define properties on PROTOTYPE using PROPERTIES
Comment 1 Dimitri Glazkov 2012-10-24 19:46:28 UTC
http://dvcs.w3.org/hg/webcomponents/rev/e737448b82a6