We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b733b1 commit d80275eCopy full SHA for d80275e
src/main/java/org/jsoup/parser/Token.java
@@ -258,7 +258,9 @@ final void appendTagName(String append) {
258
// might have null chars - need to replace with null replacement character
259
append = append.replace(TokeniserState.nullChar, Tokeniser.replacementChar);
260
tagName = tagName == null ? append : tagName.concat(append);
261
- normalName = ParseSettings.normalName(tagName);
+ // perf: normalize just the appended content
262
+ String normalAppend = ParseSettings.normalName(append);
263
+ normalName = normalName == null ? normalAppend : normalName.concat(normalAppend);
264
}
265
266
final void appendTagName(char append) {
0 commit comments