Skip to content

Commit

Permalink
fixes a regression when closing '>' is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshahid committed Dec 11, 2015
1 parent 89a381c commit 55c0b32
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/org/cyberneko/html/HTMLScanner.java
Original file line number Diff line number Diff line change
Expand Up @@ -2888,18 +2888,18 @@ protected boolean scanAttribute(XMLAttributesImpl attributes,
else if (c == '>') {
return false;
}
else if (c == '<') {
fCurrentEntity.rewind();
return false;
else if(c == '<') {
fCurrentEntity.rewind();
if(fReportErrors) {
fErrorReporter.reportError("HTML2001", null);
}
return false;
}
fCurrentEntity.rewind();
String aname = scanName(false);
if (aname == null) {
if (fReportErrors) {
fErrorReporter.reportError("HTML1011", null);
}
empty[0] = skipMarkup(false);
return false;
if(aname == null) {
empty[0] = skipMarkup(false);
return false;
}
if (!skippedSpaces && fReportErrors) {
fErrorReporter.reportError("HTML1013", new Object[] { aname });
Expand Down

0 comments on commit 55c0b32

Please sign in to comment.