This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Example: var Modal = document.registerElement('x-modal', { prototype: Object.create(HTMLElement, {/* modal generic prototype */}) }) var WebcamModal = document.registerElement('x-webcam', { extends: 'x-modal', prototype: Object.create(Modal, { /* webcam modal specific prototype */ show: { value: function() { Modal.prototype.show.call(this) // run webcam } } }) }) <x-modal></x-modal> <x-modal is="webcam"></x-modal> And will be cool if will be possible to have a non-dashed name of extend name (is="webcam" instead is="x-webcam").
There is no "non-dashed version" of a name, because there's no common structure to the name that we can safely ignore. The sole requirements it that a dash appears *somewhere* in the name, so it can occur between or around significant or insignificant parts, and there's no way to tell automatically what parts are insignificant.
Moved to https://github.com/w3c/webcomponents/issues/201