-
updated the editor list of Custom Elements
siusin committedApr 8, 2016 -
Revert "Revert edits to custom elements made by me for process reasons"
This reverts commit 750542c.
siusin committedApr 8, 2016
-
Revert edits to custom elements made by me for process reasons
See d95392f#commitcomment-16980405. The spec that reflects implementer consensus is still viewable at https://rawgit.com/w3c/webcomponents/15a203c8393aef0df7223ab1d43406aa11a7e71e/spec/custom/index.html, but that text was not produced under the proper process and so is not a product of the working group.
domenic committedApr 6, 2016
-
Use "look up a custom element definition" in "try to upgrade"
It was doing basically the same thing, just in a more error-prone way.
domenic committedApr 4, 2016 -
Add element definition and content categories for custom tags
Fixes #454.
domenic committedApr 4, 2016 -
Straighten out the undefined/defined/custom hierarchy
Fixes #461, and adds some nice examples.
domenic committedApr 4, 2016 -
Consider is="" more thoroughly throughout the spec
This changes the model for "create an element" fairly extensively. The goal is to be more consistent about handling type extensions, in a few ways. The main observable differences after this change are: - Edge cases where is="" "doesn't work" now just treat it as a normal attribute, instead of throwing or creating HTMLUnknownElement. (Examples of such cases are given in #466 (comment)) - While the constructor for a type extension is running, the is="" attribute is not present. - A NotFoundError is thrown if createElement(NS) is passed a { is: ... } value that does not correspond to an existing custom element definition (fixes #466). - Upgrades of type extensions during parsing and createElement(NS) are now sync (fixes #469). In terms of spec factoring: - A new algorithm, "look up a custom element definition", allows figuring out if a given (document, namespace, localName, is) tuple corresponds to a custom element definition - This new algorithm is used in various places to figure out whether the result of "create an element" will be a custom element. - Setting the is="" attribute is no longer done by "create an element"; instead, it is treated like other attributes during cloning, parsing, etc.
domenic committedApr 4, 2016 -
Fix #472: you must extend an existing HTML element
domenic committedApr 4, 2016
-
Use "defined" instead of "registered"
domenic committedMar 30, 2016 -
Fix #471: don't lowercase names upon definition in HTML documents
Since custom element registries are no longer associated with documents, this doesn't make much sense. Instead we will just throw when you try to use uppercase letters, since uppercase letters are not valid custom element names. This fixes #471 since we no longer need a reference to the document.
domenic committedMar 30, 2016 -
Fix #476: tighten phrasing around list manipulation
Also, switch variable names from action(s) to reaction(s).
domenic committedMar 30, 2016 -
Fix #470: consistently use "authors" instead of "developers"
All usages are in sections that will upstream into HTML, which prefers the term "authors."
domenic committedMar 30, 2016 -
Fix #475: use inserted/removed terms instead of "when it becomes"
domenic committedMar 30, 2016
-
Fix #464: cloning should only treat is="" specially for HTML elements
domenic committedMar 29, 2016 -
Fix #467: "create an element" needs to always return something
domenic committedMar 29, 2016 -
Fix #462: "context object" should be "document" in "create an element"
domenic committedMar 29, 2016 -
Fix #459: remove redundant check in "create an element"
domenic committedMar 29, 2016 -
Fix #465: tighten insert/remove custom elements phrasing
As explained in that bug, the discussion of the "previous" state is not necessary and is a bit confusing.
domenic committedMar 29, 2016
-
Move semantics section into the intro
It is now "drawbacks of custom tags". While doing so, rewrite it to show a full custom element definition, instead of some serialization of the in-DOM markup using inline event handlers. Fixes #349.
domenic committedMar 25, 2016 -
Rearrange custom elements sections
No content change. Moved custom element reactions under the main custom elements section; consolidated the patches in "Instantiating custom elements" into "Miscellaneous patches"; and rearranged so that HTML patches come first, then DOM patches.
domenic committedMar 25, 2016 -
Add diagram summarizing custom element reactions
domenic committedMar 25, 2016 -
Fix parsing's invocation of custom element reactions
Now that I understand the stack-of-queues structure better, it's clear that the way to do this is to push a new queue onto the stack.
domenic committedMar 25, 2016 -
Remove the "element is being created" flag
See #458 for some discussion.
domenic committedMar 25, 2016 -
Tidy up some more custom element reactions stuff
Add warnings on known issues, and move the "current element queue" definition around.
domenic committedMar 25, 2016 -
Fix enqueuing callbacks for elements not in a browsing context
The spec previously had a NOTE claiming that the algorithm was never called in such cases, but that was false. Instead, just bail if there's no browsing context.
domenic committedMar 25, 2016
-
Remove base element queue and related machinery
Per #457, it is used for async parsing/construction, but the spec no longer has that. So currently it's not possible for the base element queue to ever be used. Awesomely, this takes along the concepts "sorted element queue", "custom element order", "processing base element queue", and "processing base element queue flag".
domenic committedMar 24, 2016 -
Initial cleanups to the definition of custom element reactions
Introduces the new term, "custom element reactions", since upgrades do not call a callback but instead use the constructor. Use the "reaction" terminology throughout. Makes the "lifecycle callbacks" definition a bit clearer. Also adds some introductory paragraphs explaining the motivation; this closes #368.
domenic committedMar 24, 2016 -
Tidy up the definition of custom element
domenic committedMar 24, 2016 -
connectedCallback was being called twice when inserting an element upgraded it.
domenic committedMar 24, 2016 -
Move upgrade example to the intro, and add an edge-case example
The new example illustrates the conclusion we came to in #419.
domenic committedMar 24, 2016 -
Fix #450: make upgrades enqueue callbacks
Also update to new "in a shadow-including document" terminology.
domenic committedMar 24, 2016 -
Link to the section when talking about the general concept, and to the algorithm only when specifically referencing the algorithm. This makes the dfn.js popup on "upgrade an element" significantly more useful.
domenic committedMar 24, 2016 -
Fix some element creation edge cases with type extensions
domenic committedMar 24, 2016
-
In particular, now that w3c/respec#582 is fixed, we don't need to define "konstructor" anymore.