/** * The structural pass over diagram adapter markup. * * Adapter markup is embedded inside the page's own elements, so it must stay a * self-contained fragment: it may not close an element it did not open, leave * one open to swallow the page that follows, switch the HTML parser into a mode * that reads the rest of the page as text, or carry the attributes the page and * its runtime use as hooks. This pass walks the fragment once, in step with how * a browser would tokenize it, and refuses anything it cannot read the same way. * * The same walk fits accepted markup to the page's Content Security Policy: * `