WebIDLpedia

DOMParser interface

Definition

HTML Standard defines DOMParser



[Exposed=Window]
interface DOMParser {
  constructor();

  [NewObject] Document parseFromString((TrustedHTML or DOMString) string, DOMParserSupportedType type);
};

Methods and attributes that return objects implementing DOMParser