[Bug 20487] [Custom]: Creation of custom elements via createElement is underdefined

https://www.w3.org/Bugs/Public/show_bug.cgi?id=20487

--- Comment #10 from Boris Zbarsky <bzbarsky@mit.edu> ---
> When a custom element is instantiated with the createElement method,

The concept of "custom element" is not defined in a way that I can tell, as a
createElement implementor, whethere I'm creating a "custom element".

Perhaps this should simply say "When an element is instantiated..."?

The custom element instantiation algorithm might need to say something about
what happens if the namespace is neither HTML nor SVG.  Or can that situation
not arise?

I don't think anything defines how to tell whether a custom interface inherits
from HTMLElement.  I certainly can't find anything that defines it.

The custom element instantiation algorithm creates HTML-namespaced elements
even if we're extending SVG elements.  That seems ... odd.

> Let CHAIN be ELEMENT's prototype chain, in reverse order (starting with at the
> top of the prototype chain)

Is the "top" Object.prototype or the other end?  Better to say which end you're
starting with (e.g. the prototype closest to the object or furthest away)
instead of assuming your mental geometry matches other people's.

Apart from those, this is starting to look much better, yes.  I think at this
point the createElement bits are fine and the remaining vagueness has been
pushed to elsewhere.  ;)

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 29 January 2013 06:14:54 UTC