<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>22589</bug_id>
          
          <creation_ts>2013-07-07 23:44:52 +0000</creation_ts>
          <short_desc>document.register() signature in intro doesn&apos;t match spec</short_desc>
          <delta_ts>2013-07-09 01:37:45 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>14949</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Bill Keese">wkeese</reporter>
          <assigned_to name="Dominic Cooney">dominicc</assigned_to>
          <cc>dominicc</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>90405</commentid>
    <comment_count>0</comment_count>
    <who name="Bill Keese">wkeese</who>
    <bug_when>2013-07-07 23:44:52 +0000</bug_when>
    <thetext>http://www.w3.org/TR/2013/WD-components-intro-20130606/ (the latest version) lists the document.register() signature for extensions with three arguments:

var FancyButton = document.register(&apos;button&apos;, &apos;fancy-button&apos;, {prototype: p});

However in the spec at https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#dfn-type-extension it&apos;s listed with two arguments:

document.register(&apos;x-foo&apos;, {
    prototype: Object.create(HTMLParagraphElement.prototype, {
        firstMember: {
            get: function() { return &quot;foo&quot;; },
            enumerable: true,
            configurable: true
        },
        // specify more members for your prototype.
        // ...
    })
});


Since Polymer also works with two arguments, I&apos;m guessing the example in the into is wrong.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90406</commentid>
    <comment_count>1</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2013-07-08 00:46:48 +0000</bug_when>
    <thetext>Thank you for the bug report! Fixed: &lt;https://dvcs.w3.org/hg/webcomponents/rev/b3bb5cb82773&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>