Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/parserHelper
In directory sc8-pr-cvs1:/tmp/cvs-serv8276/org/htmlparser/parserHelper
Modified Files:
AttributeParser.java
Log Message:
Fix bug #755929 Empty string attr. value causes attr parsing to be stopped
and bug #753012 IMG SRC not parsed v1.3 & v1.4
There was a premature break in the attribute scanner on encountering an empty
string value. A guard testing for an exhausted tokenizer was added.
Added testEmptyStringElement() to ImageTagTest, although it could go anywhere really.
Index: AttributeParser.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/parserHelper/AttributeParser.java,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** AttributeParser.java 22 Jun 2003 21:37:45 -0000 1.27
--- AttributeParser.java 28 Jun 2003 15:08:04 -0000 1.28
***************
*** 127,131 ****
else {
processInvalidPart();
! break;
}
}
--- 127,132 ----
else {
processInvalidPart();
! if (!tokenizer.hasMoreTokens ())
! break;
}
}
|