Class DocumentType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, org.htmlunit.corejs.javascript.ConstProperties, org.htmlunit.corejs.javascript.debug.DebuggableObject, org.htmlunit.corejs.javascript.Scriptable, org.htmlunit.corejs.javascript.SymbolScriptable

    public class DocumentType
    extends Node
    A JavaScript object for DocumentType.
    See Also:
    MSDN documentation, XUL Planet, Serialized Form
    • Constructor Detail

      • DocumentType

        public DocumentType()
        Creates an instance.
    • Method Detail

      • jsConstructor

        public void jsConstructor()
        Creates an instance.
        Overrides:
        jsConstructor in class Node
      • getName

        public java.lang.String getName()
        Returns the name.
        Returns:
        the name
      • getNodeName

        public java.lang.String getNodeName()
        Gets the JavaScript property nodeName for the current node.
        Overrides:
        getNodeName in class Node
        Returns:
        the node name
      • getPublicId

        public java.lang.String getPublicId()
        Returns the publicId.
        Returns:
        the publicId
      • getSystemId

        public java.lang.String getSystemId()
        Returns the systemId.
        Returns:
        the systemId
      • before

        public static void before​(org.htmlunit.corejs.javascript.Context context,
                                  org.htmlunit.corejs.javascript.Scriptable scope,
                                  org.htmlunit.corejs.javascript.Scriptable thisObj,
                                  java.lang.Object[] args,
                                  org.htmlunit.corejs.javascript.Function function)
        Inserts a set of Node or DOMString objects in the children list of this ChildNode's parent, just before this ChildNode.
        Parameters:
        context - the context
        scope - the scope
        thisObj - this object
        args - the arguments
        function - the function
      • after

        public static void after​(org.htmlunit.corejs.javascript.Context context,
                                 org.htmlunit.corejs.javascript.Scriptable scope,
                                 org.htmlunit.corejs.javascript.Scriptable thisObj,
                                 java.lang.Object[] args,
                                 org.htmlunit.corejs.javascript.Function function)
        Inserts a set of Node or DOMString objects in the children list of this ChildNode's parent, just after this ChildNode.
        Parameters:
        context - the context
        scope - the scope
        thisObj - this object
        args - the arguments
        function - the function
      • replaceWith

        public static void replaceWith​(org.htmlunit.corejs.javascript.Context context,
                                       org.htmlunit.corejs.javascript.Scriptable scope,
                                       org.htmlunit.corejs.javascript.Scriptable thisObj,
                                       java.lang.Object[] args,
                                       org.htmlunit.corejs.javascript.Function function)
        Replaces the node wit a set of Node or DOMString objects.
        Parameters:
        context - the context
        scope - the scope
        thisObj - this object
        args - the arguments
        function - the function