Skip to content
Commits on Apr 8, 2016
  1. @siusin
  2. @siusin
Commits on Apr 6, 2016
  1. @domenic

    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 committed Apr 6, 2016
Commits on Apr 4, 2016
  1. @domenic

    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 committed Apr 4, 2016
  2. @domenic
  3. @domenic

    Straighten out the undefined/defined/custom hierarchy

    Fixes #461, and adds some nice examples.
    domenic committed Apr 4, 2016
  4. @domenic

    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 committed Apr 4, 2016
  5. @domenic
Commits on Mar 30, 2016
  1. @domenic
  2. @domenic

    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 committed Mar 30, 2016
  3. @domenic

    Fix #476: tighten phrasing around list manipulation

    Also, switch variable names from action(s) to reaction(s).
    domenic committed Mar 30, 2016
  4. @domenic

    Fix #470: consistently use "authors" instead of "developers"

    All usages are in sections that will upstream into HTML, which prefers the term "authors."
    domenic committed Mar 30, 2016
  5. @domenic
Commits on Mar 29, 2016
  1. @domenic
  2. @domenic
  3. @domenic
  4. @domenic
  5. @domenic

    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 committed Mar 29, 2016
Commits on Mar 25, 2016
  1. @domenic

    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 committed Mar 25, 2016
  2. @domenic

    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 committed Mar 25, 2016
  3. @domenic
  4. @domenic

    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 committed Mar 25, 2016
  5. @domenic

    Remove the "element is being created" flag

    See #458 for some discussion.
    domenic committed Mar 25, 2016
  6. @domenic

    Tidy up some more custom element reactions stuff

    Add warnings on known issues, and move the "current element queue" definition around.
    domenic committed Mar 25, 2016
  7. @domenic

    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 committed Mar 25, 2016
Commits on Mar 24, 2016
  1. @domenic

    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 committed Mar 24, 2016
  2. @domenic

    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 committed Mar 24, 2016
  3. @domenic
  4. @domenic

    Fix another upgrade edge case

    connectedCallback was being called twice when inserting an element upgraded it.
    domenic committed Mar 24, 2016
  5. @domenic

    Move upgrade example to the intro, and add an edge-case example

    The new example illustrates the conclusion we came to in #419.
    domenic committed Mar 24, 2016
  6. @domenic

    Fix #450: make upgrades enqueue callbacks

    Also update to new "in a shadow-including document" terminology.
    domenic committed Mar 24, 2016
  7. @domenic

    Switch around upgrade links

    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 committed Mar 24, 2016
  8. @domenic
  9. @pimterry @domenic

    Fix small custom elements typos

    PR: #456
    pimterry committed with domenic Mar 23, 2016
Commits on Mar 22, 2016
  1. @rianby64 @domenic

    Fix some typos

    In particular, now that w3c/respec#582 is fixed, we don't need to define "konstructor" anymore.
    rianby64 committed with domenic Mar 22, 2016
Something went wrong with that request. Please try again.