Skip to content

Commit bf13b49

Browse files
committed
Assert namespaced attribute with digit
Closes #2236
1 parent 0a4b830 commit bf13b49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/org/jsoup/parser/XmlTreeBuilderTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,12 +300,12 @@ public void handlesLTinScript() {
300300
}
301301

302302
@Test void xmlValidAttributes() {
303-
String xml = "<a bB1-_:.=foo _9!=bar>One</a>";
303+
String xml = "<a bB1-_:.=foo _9!=bar xmlns:p1=qux>One</a>";
304304
Document doc = Jsoup.parse(xml, Parser.xmlParser());
305305
assertEquals(Syntax.xml, doc.outputSettings().syntax());
306306

307307
String out = doc.html();
308-
assertEquals("<a bB1-_:.=\"foo\" _9_=\"bar\">One</a>", out); // first is same, second coerced
308+
assertEquals("<a bB1-_:.=\"foo\" _9_=\"bar\" xmlns:p1=\"qux\">One</a>", out); // first is same, second coerced
309309
}
310310

311311
@Test void customTagsAreFlyweights() {

0 commit comments

Comments
 (0)