Class DomApi


  • public class DomApi
    extends Object
    Access point for DOM API. All operations and interactions with DOM nodes and elements should go through this class.

    This class delegates the operations to the actual DOM API implementations, which might be changed on the run, meaning after dependencies have been loaded.

    Since:
    1.0
    Author:
    Vaadin Ltd
    • Method Detail

      • wrap

        public static DomElement wrap​(elemental.dom.Node node)
        Wraps the given DOM node to make it safe to invoke any of the methods from DomNode or DomElement.
        Parameters:
        node - the node to wrap
        Returns:
        a wrapped element
      • updateApiImplementation

        public static void updateApiImplementation()
        Updates the DOM API implementation used.