Skip to content
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.

Adds attachShadow({shadyUpgradeFragment: documentFragment}) #316

Merged
merged 25 commits into from
Apr 13, 2019

Commits on Jan 23, 2019

  1. Adds ShadowRoot.upgrade(fragment, host, options)

    * As an optimization for creation and initial population of a ShadowRoot, adds the optional `upgrade` static method. Note, the `fragment` dom must already have any necessary style scoping applied.
    
    * Also removes initial default property sets from `ShadyData` and `ShadyRoot` which is empirically slightly faster.
    
    * slightly optimizes capturing logical data by not accessing `childNodes`
    Steven Orvell committed Jan 23, 2019
    Configuration menu
    Copy the full SHA
    6261855 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2019

  1. [upgrade] Fix rendering with slots

    Steven Orvell committed Jan 24, 2019
    Configuration menu
    Copy the full SHA
    71f9768 View commit details
    Browse the repository at this point in the history
  2. Avoid childNodes when possible.

    Steven Orvell committed Jan 24, 2019
    Configuration menu
    Copy the full SHA
    96be5a4 View commit details
    Browse the repository at this point in the history
  3. More avoiding of childNodes when possible.

    Steven Orvell committed Jan 24, 2019
    Configuration menu
    Copy the full SHA
    3091902 View commit details
    Browse the repository at this point in the history

Commits on Jan 25, 2019

  1. Remove superfluous check

    Steven Orvell committed Jan 25, 2019
    Configuration menu
    Copy the full SHA
    3da0f04 View commit details
    Browse the repository at this point in the history
  2. [upgrade] Refine argument name

    Steven Orvell committed Jan 25, 2019
    Configuration menu
    Copy the full SHA
    eb98d72 View commit details
    Browse the repository at this point in the history

Commits on Feb 1, 2019

  1. Merge branch 'more-flush' into shadowRoot-upgrade

    Steven Orvell committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    a0ce84a View commit details
    Browse the repository at this point in the history

Commits on Feb 6, 2019

  1. Merge branch 'master' into shadowRoot-upgrade

    Steven Orvell committed Feb 6, 2019
    Configuration menu
    Copy the full SHA
    f542a57 View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2019

  1. Merge branch 'master' into shadowRoot-upgrade

    Steven Orvell committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    a67d835 View commit details
    Browse the repository at this point in the history
  2. Adds ShadyDOM.upgrade(fragment, host, options)

    This replaces but is the same as `ShadowRoot.upgrade`. Prefer putting bespoke API on non-standard object.
    
    Also adds some slight type refinement.
    Steven Orvell committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    d359957 View commit details
    Browse the repository at this point in the history
  3. Re-add skipped tests

    Remove`.only` that was mistakenly skipping tests. Slight re-organization of a few tests
    Steven Orvell committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    4342887 View commit details
    Browse the repository at this point in the history
  4. upgarde: avoid optimal path when customElements polyfill is in use

    Since `appendChild` is not used, the custom elements patch that calls `connectedCallback` will not run. Therefore, do not use this when custom elements are being polyfilled.
    Steven Orvell committed Feb 14, 2019
    Configuration menu
    Copy the full SHA
    003a148 View commit details
    Browse the repository at this point in the history

Commits on Feb 15, 2019

  1. Avoid upgrade on IE

    Performing `appendChild` with a documentFragment with a patched prototype appears to blow up IE.
    Steven Orvell committed Feb 15, 2019
    Configuration menu
    Copy the full SHA
    2b355c2 View commit details
    Browse the repository at this point in the history

Commits on Feb 20, 2019

  1. Address review feedback

    Steven Orvell committed Feb 20, 2019
    Configuration menu
    Copy the full SHA
    59cff79 View commit details
    Browse the repository at this point in the history
  2. Slight simplification based on review

    Steven Orvell committed Feb 20, 2019
    Configuration menu
    Copy the full SHA
    87c8e35 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2019

  1. Allow ShadyDOM.attachDOM to work in the customElements polyfill

    This requires making sure `attachShadow` and `appendChild` are called. The code now special cases inside of those patches.
    Steven Orvell committed Feb 21, 2019
    Configuration menu
    Copy the full SHA
    f70e34e View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2019

  1. Merge branch 'master' into shadowRoot-upgrade

    Steven Orvell committed Apr 1, 2019
    Configuration menu
    Copy the full SHA
    ba1a238 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'wrap-className' into shadowRoot-upgrade

    Steven Orvell committed Apr 1, 2019
    Configuration menu
    Copy the full SHA
    4eb1c12 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2019

  1. Merge branch 'master' into shadowRoot-upgrade

    Steven Orvell committed Apr 3, 2019
    Configuration menu
    Copy the full SHA
    3fb6f83 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2019

  1. Ensure scoping updates correctly when ShadyDOM.attachDom is used.

    * ensures a shadowRoot itself does not maintain a `__noInsertionPoint` flag after initial creation when ShadyDOM.attachDom is used.
    * adds small optimization to prevent text nodes from being unscoped
    Steven Orvell committed Apr 4, 2019
    Configuration menu
    Copy the full SHA
    9fa8f8a View commit details
    Browse the repository at this point in the history

Commits on Apr 11, 2019

  1. Fix event removal for platforms (e.g. old Chrome) that don't have eve…

    …nt options.
    Steven Orvell committed Apr 11, 2019
    1 Configuration menu
    Copy the full SHA
    5d9f909 View commit details
    Browse the repository at this point in the history
  2. Simplify native patching slightly and add className

    Steven Orvell committed Apr 11, 2019
    Configuration menu
    Copy the full SHA
    9dd608d View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2019

  1. Remove ShadyDOM.attachDom in favor of `attachShadow({shadyUpgradeFr…

    …agment})`
    Steven Orvell committed Apr 13, 2019
    Configuration menu
    Copy the full SHA
    eb6e08a View commit details
    Browse the repository at this point in the history
  2. Fix typo

    Steven Orvell committed Apr 13, 2019
    Configuration menu
    Copy the full SHA
    d585fd4 View commit details
    Browse the repository at this point in the history
  3. Lint fix.

    Steven Orvell committed Apr 13, 2019
    Configuration menu
    Copy the full SHA
    5a77147 View commit details
    Browse the repository at this point in the history