You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
note: 'Baseline of legacy direct innerHTML/outerHTML assignments for scripts/enforce-safe-html.mjs. Do not add entries for new code; route through src/utils/dom-utils.ts or add a wm-safe-html audited comment for narrow exceptions.',
147
+
note: 'Baseline of legacy direct innerHTML/outerHTML assignments and Panel.setContent() call sites for scripts/enforce-safe-html.mjs. Do not add entries for new code; route through src/utils/dom-utils.ts, Panel.setSafeContent(), or add a wm-safe-html audited comment for narrow exceptions.',
console.log(`Safe HTML guard passed (${findings.length} legacy assignments tracked).`);
166
+
console.log(`Safe HTML guard passed (${findings.length} legacy HTML sinks tracked).`);
136
167
return;
137
168
}
138
169
139
170
console.error('Direct innerHTML/outerHTML assignment is blocked.');
140
-
console.error('Use setTrustedHtml()/trustedHtml() from src/utils/dom-utils.ts, use clearChildren()/replaceChildren(), or add an adjacent `wm-safe-html: audited - ...` comment for a narrow intentional exception.');
171
+
console.error('Panel.setContent() calls are also blocked unless they are already baselined or have an adjacent `wm-safe-html: audited - ...` comment.');
172
+
console.error('Use setTrustedHtml()/trustedHtml() from src/utils/dom-utils.ts, Panel.setSafeContent(), use clearChildren()/replaceChildren(), or add an adjacent audit comment for a narrow intentional exception.');
0 commit comments