From 3a5c90f2873116b7948afbb335aec4f816abf8d1 Mon Sep 17 00:00:00 2001 From: Frederik Braun Date: Fri, 31 Oct 2025 16:48:28 +0100 Subject: [PATCH 1/7] Improve and update the existing Security Considerations - fixes #287 --- index.bs | 503 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 492 insertions(+), 11 deletions(-) diff --git a/index.bs b/index.bs index ca53380..374add5 100644 --- a/index.bs +++ b/index.bs @@ -1453,10 +1453,15 @@ URLs, is as follows: # Security Considerations # {#security-considerations} The Sanitizer API is intended to prevent DOM-based Cross-Site Scripting -by traversing a supplied HTML content and removing elements and attributes -according to a configuration. The specified API must not support -the construction of a Sanitizer object that leaves script-capable markup in -and doing so would be a bug in the threat model. +by traversing supplied HTML content and removing elements and attributes +according to a configuration. The Sanitizer API ships a strict baseline, +such that scripting can never be allowed (cf. [[#never-allowed]]). +In addition to this, a default safe list includes further restrictions that may help +prevent a wide range of undesirable effects. These include, elements that can override +site-specific settings (e.g., ``), embed third-party content or change the +layout of the page (e.g., ``, `