Class MutationRecord


  • @JsType(isNative=true,
            namespace="<global>")
    public final class MutationRecord
    extends Object
    Represents an individual DOM mutation. It is the object that is passed to MutationObserver.MutationObserverCallback's callback.
    Author:
    Andrea "Stock" Stocchero
    • Method Detail

      • getAddedElements

        @JsOverlay
        public List<BaseHtmlElement> getAddedElements()
        Returns the elements added.
        Will be an empty element list if no elements were added.
        Returns:
        the elements added
      • getNextSibling

        @JsProperty
        public BaseNode getNextSibling()
        Returns the next sibling of the added or removed nodes, or null.
        Returns:
        the next sibling of the added or removed nodes, or null
      • getPreviousSibling

        @JsProperty
        public BaseNode getPreviousSibling()
        Returns the previous sibling of the added or removed nodes, or null.
        Returns:
        the previous sibling of the added or removed nodes, or null
      • getRemovedElements

        @JsOverlay
        public List<BaseHtmlElement> getRemovedElements()
        Returns the elements removed.
        Will be an empty element list if no elements were removed.
        Returns:
        the elements removed