Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/mingfai/jsoup into mingfa…
Browse files Browse the repository at this point in the history
…i-master
  • Loading branch information
jhy committed Jan 27, 2013
2 parents aa812e4 + 82200d7 commit 9779d0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/jsoup/parser/TokeniserState.java
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ void read(Tokeniser t, CharacterReader r) {
t.transition(AfterAttributeValue_quoted);
break;
case '&':
char[] ref = t.consumeCharacterReference('"', true);
char[] ref = t.consumeCharacterReference('\'', true);
if (ref != null && ref.length>0)
t.tagPending.appendAttributeValue(new String(ref));
else
Expand Down Expand Up @@ -1005,7 +1005,7 @@ void read(Tokeniser t, CharacterReader r) {
t.transition(BeforeAttributeName);
break;
case '&':
char[] ref = t.consumeCharacterReference('"', true);
char[] ref = t.consumeCharacterReference('>', true);
if (ref != null && ref.length>0)
t.tagPending.appendAttributeValue(new String(ref));
else
Expand Down

0 comments on commit 9779d0d

Please sign in to comment.