Skip to content

Commit

Permalink
* remove tagName lower case issue
Browse files Browse the repository at this point in the history
* release 1.8.2.2
  • Loading branch information
jumperchen committed Feb 5, 2015
1 parent 33522ed commit b21145e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.zkoss</groupId>
<artifactId>zsoup</artifactId>
<version>1.8.2.1</version>
<version>1.8.2.2</version>
<description>zsoup HTML parser</description>
<url>http://www.zkoss.org</url>
<inceptionYear>2009</inceptionYear>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/zkoss/zsoup/parser/Tag.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class Tag {
private boolean formSubmit = false; // a control that can be submitted in a form: input etc

private Tag(String tagName) {
this.tagName = tagName.toLowerCase();
this.tagName = tagName;
}

/**
Expand All @@ -50,7 +50,7 @@ public static Tag valueOf(String tagName) {
Tag tag = tags.get(tagName);

if (tag == null) {
tagName = tagName.trim().toLowerCase();
tagName = tagName.trim();
Validate.notEmpty(tagName);
tag = tags.get(tagName);

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/zkoss/zsoup/parser/TokeniserState.java
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ void read(Tokeniser t, CharacterReader r) {
// from < or </ in data, will have start or end tag pending
void read(Tokeniser t, CharacterReader r) {
// previous TagOpen state did NOT consume, will have a letter char in current
String tagName = r.consumeToAny('\t', '\n', '\r', '\f', ' ', '/', '>', nullChar).toLowerCase();
String tagName = r.consumeToAny('\t', '\n', '\r', '\f', ' ', '/', '>', nullChar);
t.tagPending.appendTagName(tagName);

switch (r.consume()) {
Expand Down

0 comments on commit b21145e

Please sign in to comment.