From 3989e4c6564833525eefe37fdbcb9facf0c51582 Mon Sep 17 00:00:00 2001 From: Vladimir Kuvandjiev Date: Thu, 7 Mar 2019 13:33:12 +0200 Subject: [PATCH 1/2] max-width and min-width added to allowed_css_properties --- html5lib/filters/sanitizer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/html5lib/filters/sanitizer.py b/html5lib/filters/sanitizer.py index e852f53b..a2c28409 100644 --- a/html5lib/filters/sanitizer.py +++ b/html5lib/filters/sanitizer.py @@ -577,6 +577,8 @@ 'height', 'letter-spacing', 'line-height', + 'max-width', + 'min-width', 'overflow', 'pause', 'pause-after', From a10ce6b69a1fcb6c588510c9d3b4f24f13e3d020 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Fri, 3 Mar 2023 16:03:51 +0100 Subject: [PATCH 2/2] Also add max-height and min-height --- html5lib/filters/sanitizer.py | 2 ++ html5lib/tests/sanitizer-testdata/tests1.dat | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/html5lib/filters/sanitizer.py b/html5lib/filters/sanitizer.py index f0b0d824..ea2c5dd3 100644 --- a/html5lib/filters/sanitizer.py +++ b/html5lib/filters/sanitizer.py @@ -598,6 +598,8 @@ 'height', 'letter-spacing', 'line-height', + 'max-height', + 'min-height', 'max-width', 'min-width', 'overflow', diff --git a/html5lib/tests/sanitizer-testdata/tests1.dat b/html5lib/tests/sanitizer-testdata/tests1.dat index 74e88336..2bfbc7df 100644 --- a/html5lib/tests/sanitizer-testdata/tests1.dat +++ b/html5lib/tests/sanitizer-testdata/tests1.dat @@ -133,8 +133,8 @@ { "name": "platypus", - "input": "never trust your upstream platypus", - "output": "never trust your upstream platypus" + "input": "never trust your upstream platypus", + "output": "never trust your upstream platypus" }, { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy