Skip to content

Lifecycle

Thomas Di Grégorio edited this page Jan 16, 2017 · 3 revisions

Lifecycles (draft)

Document

  • asap
    • load xmlns namespaces
  • on Mutation
    • fix node
      • fix attributes
    • upgrade
    • extends

(deprecated)

  • DOMContentLoaded
    • Loop each node
      • Test class pair existance
        • Exists: extend node
        • !Exists: try to load a Document (.*ml) then a .json, then a .js
  • initialize

Element

  • just parsed: state unresolved may have wrong namespace/prefix/localName in HTML5
  • fixed: namespace/prefix/localName are correct
  • pending: upgrade is needed the class is requested async
  • loaded: constructor and parent classes are loaded
  • extended: with loaded class or at least Element
  • created: ClassName method called
    • attributes binded
    • childs
  • added:
  • removed: