HTML search engine

Constructors

Properties

Methods

Constructors

Properties

UNSUPPORTED_ELEMENTS: {
    APPLET: boolean;
    AREA: boolean;
    AUDIO: boolean;
    BASE: boolean;
    BODY: boolean;
    CANVAS: boolean;
    EMBED: boolean;
    HEAD: boolean;
    IFRAME: boolean;
    IMG: boolean;
    LINK: boolean;
    MAP: boolean;
    META: boolean;
    NOEMBED: boolean;
    NOSCRIPT: boolean;
    OBJECT: boolean;
    PARAM: boolean;
    PICTURE: boolean;
    SCRIPT: boolean;
    SOURCE: boolean;
    STYLE: boolean;
    svg: boolean;
    SVG: boolean;
    TITLE: boolean;
    TRACK: boolean;
    VIDEO: boolean;
} = ...

We choose opt out as most node types should be searched (e.g. script). Even nodes like , could have textContent we care about.

Note: We will be checking each node's nodeName attribute in the Node interface. ref: https://dom.spec.whatwg.org/#dom-node-nodename

Specifically for Element nodes, where nodeName is stated as the 'HTML-uppercased qualified name'. However, that does not mean that HTML elements qualified name is guaranteed to be uppercased even when the content type is HTML, i.e. XML tags like . This only applies when the node's namespace is in HTML and the node document is a HTML document. ref: https://dom.spec.whatwg.org/#element-html-uppercased-qualified-name

Methods