This is an automated email from the ASF dual-hosted git repository. mgrigorov pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/wicket.git
The following commit(s) were added to refs/heads/master by this push: new 837f3c1 WICKET-6815 Incorrect parsing of html attributes 837f3c1 is described below commit 837f3c137bf39f26ddc3b8e939235cde04e8c13d Author: Martin Tzvetanov Grigorov <mgrigo...@apache.org> AuthorDate: Mon Mar 22 16:24:12 2021 +0200 WICKET-6815 Incorrect parsing of html attributes --- .../org/apache/wicket/util/parse/metapattern/MetaPatternTest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wicket-util/src/test/java/org/apache/wicket/util/parse/metapattern/MetaPatternTest.java b/wicket-util/src/test/java/org/apache/wicket/util/parse/metapattern/MetaPatternTest.java index 6a4187c..68997d4 100644 --- a/wicket-util/src/test/java/org/apache/wicket/util/parse/metapattern/MetaPatternTest.java +++ b/wicket-util/src/test/java/org/apache/wicket/util/parse/metapattern/MetaPatternTest.java @@ -164,6 +164,7 @@ public final class MetaPatternTest tag = ":names"; parser = new TagNameParser(tag); - assertEquals(false, parser.matcher().matches()); + // leading : is allowed according to https://www.w3.org/TR/REC-xml/#NT-NameStartChar + assertTrue(parser.matcher().matches()); } -} \ No newline at end of file +}