• Add or replace the <meta charset="..."> element at the start of the Document’s <head> element.

    Returns

    Nothing; the document is mutated.

    Parameters

    • doc: Document

      The Document to add the element to.

    • charsetDeclaration: null | string

      The character set name (usually 'utf-8').

    Returns void