Module Document.Impl

Parameters

Signature

let asDocument: T.t => Dom.document;
let asHtmlDocument: T.t => option(Dom.htmlDocument);
let unsafeAsHtmlDocument: T.t => Dom.htmlDocument;

Unsafe cast, use ashtmlDocument instead

let ofNode: Dom.node => option(T.t);
let characterSet: T.t => string;
let compatMode: T.t => string;
let compatMode: T.t => Webapi__Dom__Types.compatMode;
let doctype: T.t => Dom.documentType;
let documentElement: T.t => Dom.element;
let documentURI: T.t => string;
let hidden: T.t => bool;
let implementation: T.t => Dom.domImplementation;
let lastStyleSheetSet: T.t => string;
let pointerLockElement: T.t => option(Dom.element);
let preferredStyleSheetSet: T.t => string;
let scrollingElement: T.t => option(Dom.element);
let selectedStyleSheetSet: T.t => string;
let setSelectedStyleSheetSet: T.t => string => unit;
let styleSheets: T.t => array(Dom.cssStyleSheet);
let styleSheetSets: T.t => array(string);
let visibilityState: T.t => string;
let visibilityState: T.t => Webapi__Dom__Types.visibilityState;
let adoptNode: Dom.element_like('a) => T.t => Dom.element_like('a);
let createAttribute: string => T.t => Dom.attr;
let createAttributeNS: string => string => T.t => Dom.attr;
let createComment: string => T.t => Dom.comment;
let createDocumentFragment: T.t => Dom.documentFragment;
let createElement: string => T.t => Dom.element;
let createElementWithOptions: string => Js.t({.. }) => T.t => Dom.element;
let createElementNS: string => string => T.t => Dom.element;
let createElementNSWithOptions: string => string => Js.t({.. }) => T.t => Dom.element;
let createEvent: string => T.t => Dom.event;
let createNodeIterator: Dom.node_like('a) => T.t => Dom.nodeIterator;
let createNodeIteratorWithWhatToShow: Dom.node_like('a) => Webapi__Dom__Types.WhatToShow.t => T.t => Dom.nodeIterator;
let createNodeIteratorWithWhatToShowFilter: Dom.node_like('a) => Webapi__Dom__Types.WhatToShow.t => Dom.nodeFilter => T.t => Dom.nodeIterator;
let createRange: T.t => Dom.range;
let createTextNode: string => T.t => Dom.text;
let createTreeWalker: Dom.element_like('a) => T.t => Dom.treeWalker;
let createTreeWalkerWithWhatToShow: Dom.element_like('a) => Webapi__Dom__Types.WhatToShow.t => T.t => Dom.treeWalker;
let createTreeWalkerWithWhatToShowFilter: Dom.element_like('a) => Webapi__Dom__Types.WhatToShow.t => Dom.nodeFilter => T.t => Dom.treeWalker;
let elementFromPoint: int => int => T.t => Dom.element;
let elementsFromPoint: int => int => T.t => array(Dom.element);
let enableStyleSheetsForSet: string => T.t => unit;
let exitPointerLock: T.t => unit;
let getAnimations: T.t => array(Dom.animation);
let getElementsByClassName: string => T.t => Dom.htmlCollection;
let getElementsByTagName: string => T.t => Dom.htmlCollection;
let getElementsByTagNameNS: string => string => T.t => Dom.htmlCollection;
let importNode: Dom.element_like('a) => T.t => Dom.element_like('a);
let importNodeDeep: Dom.element_like('a) => T.t => Dom.element_like('a);
let registerElement: string => unit => T.t => Dom.element;
let registerElementWithOptions: string => Js.t({.. }) => unit => T.t => Dom.element;