WebIDLpedia

DocumentType interface

Definition

DOM Standard defines DocumentType


DocumentType includes ChildNode;

[Exposed=Window]
interface DocumentType : Node {
  readonly attribute DOMString name;
  readonly attribute DOMString publicId;
  readonly attribute DOMString systemId;
};
Consolidated IDL (across mixin and partials)


[Exposed=Window]
interface DocumentType : Node {
  readonly attribute DOMString name;
  readonly attribute DOMString publicId;
  readonly attribute DOMString systemId;
  [CEReactions, Unscopable] undefined before((Node or TrustedScript or DOMString)... nodes);
  [CEReactions, Unscopable] undefined after((Node or TrustedScript or DOMString)... nodes);
  [CEReactions, Unscopable] undefined replaceWith((Node or TrustedScript or DOMString)... nodes);
  [CEReactions, Unscopable] undefined remove();
};

Methods and attributes that return objects implementing DocumentType

Referring IDL interfaces/dictionaries