Skip to content

Commit

Permalink
Fragment parse check should be for XMP, not XML
Browse files Browse the repository at this point in the history
  • Loading branch information
jhy committed Oct 13, 2023
1 parent 26cfb42 commit c42b0fe
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/main/java/org/jsoup/parser/HtmlTreeBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,12 @@ List<Node> parseFragment(String inputFragment, @Nullable Element context, String
case "noembed":
case "noframes":
case "style":
case "xml":
case "xmp":
tokeniser.transition(TokeniserState.Rawtext);
break;
case "script":
tokeniser.transition(TokeniserState.ScriptData);
break;
case "noscript":
tokeniser.transition(TokeniserState.Data); // if scripting enabled, rawtext
break;
case "plaintext":
tokeniser.transition(TokeniserState.PLAINTEXT);
break;
Expand Down

0 comments on commit c42b0fe

Please sign in to comment.