use HtmlConcatenationLeaf

This commit is contained in:
Erik Krogh Kristensen
2020-05-26 18:33:29 +02:00
parent 9b047f6f03
commit 63a14d1b96

View File

@@ -54,7 +54,7 @@ module IncompleteHtmlAttributeSanitization {
lhs = this.getPreviousLeaf().getStringValue().regexpCapture("(?s)(.*)=\"[^\"]*", 1) and
(
this.getNextLeaf().getStringValue().regexpMatch(".*\".*") or
this.getRoot().getConstantStringParts().regexpMatch("(?s).*</.*")
this instanceof StringOps::HtmlConcatenationLeaf
)
}