woolfel 2003/11/29 13:52:52
Modified: src/protocol/http/org/apache/jmeter/protocol/http/parser
HtmlParserHTMLParser.java
Log:
the bug 24930 should be fixed. I've tested it with the files Jordi
attached to the bug.
the bug was caused by alt=""
when the alt attribute was zero length, it caused the attribute
parser to fail.
PR:
Obtained from:
Submitted by:
Reviewed by:
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.5 +8 -2
jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/parser/HtmlParserHTMLParser.java
Index: HtmlParserHTMLParser.java
===================================================================
RCS file:
/home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/parser/HtmlParserHTMLParser.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- HtmlParserHTMLParser.java 27 Nov 2003 02:53:15 -0000 1.4
+++ HtmlParserHTMLParser.java 29 Nov 2003 21:52:52 -0000 1.5
@@ -164,7 +164,13 @@
// then we need to download the binary
binUrlStr= input.getAttribute("src");
}
- }
+ } else if (node instanceof LinkTag){
+ LinkTag link = (LinkTag)node;
+ if (link.getChild(0) instanceof ImageTag){
+ ImageTag img =
(ImageTag)link.getChild(0);
+ binUrlStr = img.getImageURL();
+ }
+ }
if (binUrlStr == null)
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]