Documentation
    Preparing search index...

    Function nappletMarkupHasFrame

    • Report whether verified napplet HTML would instantiate a nested browsing context. Parses with the host's own DOMParser (a superset of what the live sandboxed parser instantiates) when present, and always applies a lexical frame-tag backstop so the check is conservative without a DOM.

      Parameters

      • html: string

        Already-verified napplet artifact HTML.

      Returns boolean

      true if a frame element is present and the bytes must be rejected.

      if (nappletMarkupHasFrame(verifiedHtml)) throw new Error('napplet declares a frame');