WarUI

Trusted Types integration

GRID-A29-F06P1beyond-baselinePlanned

When the page enforces require-trusted-types-for 'script', WarGrid creates its own named policy, which it uses only for sanitized HTML. All other paths avoid DOM sinks entirely.

Planned. This page shows the specification from issue #209. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

A Trusted Types–enforced iframe containing a grid with one html-mode column.

Expected behavior

With a policy, html cells render sanitized output with no violations. With 'none' and an html column enabled, rendering falls back to text and logs a dev warning, and no violation is thrown.

Planned API surface

trustedTypesPolicyNametrustedTypesPolicysanitizer

Acceptance criteria

  • The grid never assigns a plain string to innerHTML, outerHTML, or insertAdjacentHTML. (pending)
  • The policy name is configurable and documented for the trusted-types CSP directive. (pending)
  • An app-supplied policy is used verbatim when provided. (pending)
  • Text-only grids work without any policy. (pending)