From dc7b6469513b957c405f2e1b8395be3d75fb5cf2 Mon Sep 17 00:00:00 2001 From: Ronald Brill Date: Tue, 11 Apr 2023 13:58:28 +0200 Subject: [PATCH] this feature is no longer supported --- .../org/owasp/validator/html/scan/AntiSamyDOMScanner.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/java/org/owasp/validator/html/scan/AntiSamyDOMScanner.java b/src/main/java/org/owasp/validator/html/scan/AntiSamyDOMScanner.java index f7dec445..5e1d924c 100644 --- a/src/main/java/org/owasp/validator/html/scan/AntiSamyDOMScanner.java +++ b/src/main/java/org/owasp/validator/html/scan/AntiSamyDOMScanner.java @@ -223,13 +223,6 @@ static DOMFragmentParser getDomParser() parser.setFeature("http://cyberneko.org/html/features/scanner/style/strip-cdata-delims", false); parser.setFeature("http://cyberneko.org/html/features/scanner/cdata-sections", true); - - try { - parser.setFeature("http://cyberneko.org/html/features/enforce-strict-attribute-names", true); - } catch (SAXNotRecognizedException se) { - // this indicates that the patched nekohtml is not on the - // classpath - } return parser; }