One part of the currently developed Web Components specification is that one will be able to create one's own HTML element, e.g. by calling the new
document.register. An example is given here: https://github.com/mozilla/web-components/blob/master/demo/demo.html
As one can see, a new
x-bar element is created by having its prototype being inherited from the prototype of an HTML span element.
Now I tried the following in Firefox Nightly (with
document.register support, by the way):
var x = Object.create(HTMLInputElement.prototype);
I have been thinking that this would be the first step in extending/customizing the behaviour or look of an ordinary
However, when I run something like
TypeError: Value does not implement interface HTMLInputElement.
Now I am a bit stuck. Is it a limitation of the current implementation or the specification?