WarUI

Escaping in headers, tooltips, and overlays

GRID-A29-F02P0baselinePlanned

Header labels, header tooltips, cell tooltips, group rows, and no-rows or loading overlay messages use the same text-only pipeline as cells. Text is frequently injected through these surfaces even when cells are safe.

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 grid whose header names, tooltips, and group labels contain injection payloads. An empty-data toggle shows the overlay.

Expected behavior

Each selected surface shows the payload literally. Tooltips use text content, not innerHTML. No script executes in any surface.

Planned API surface

columns[].headerNamecolumns[].headerTooltipcolumns[].tooltipFieldoverlayNoRowsTextoverlayLoadingTextgroupRowLabelFormatter

Acceptance criteria

  • Header, tooltip, group row, and overlay surfaces never assign untrusted strings to innerHTML. (pending)
  • Tooltip title or aria-describedby text equals the escaped payload. (pending)
  • Overlay text accepts a string only. HTML requires the trusted renderer from F03. (pending)
  • Column menu and filter labels derived from headerName are escaped. (pending)