- From: <bugzilla@jessica.w3.org>
- Date: Sun, 07 Jul 2013 23:44:52 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=22589
Bug ID: 22589
Summary: document.register() signature in intro doesn't match
spec
Classification: Unclassified
Product: WebAppsWG
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: Component Model
Assignee: dglazkov@chromium.org
Reporter: wkeese@gmail.com
QA Contact: public-webapps-bugzilla@w3.org
Blocks: 14949
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('button', 'fancy-button', {prototype: p});
However in the spec at
https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#dfn-type-extension
it's listed with two arguments:
document.register('x-foo', {
prototype: Object.create(HTMLParagraphElement.prototype, {
firstMember: {
get: function() { return "foo"; },
enumerable: true,
configurable: true
},
// specify more members for your prototype.
// ...
})
});
Since Polymer also works with two arguments, I'm guessing the example in the
into is wrong.
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Sunday, 7 July 2013 23:44:53 UTC