sebb 2004/03/23 19:00:56
Modified: src/protocol/http/org/apache/jmeter/protocol/http/parser
JTidyHTMLParser.java
Log:
Add <script> link parsing
Revision Changes Path
1.12 +7 -4
jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/parser/JTidyHTMLParser.java
Index: JTidyHTMLParser.java
===================================================================
RCS file:
/home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/parser/JTidyHTMLParser.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- JTidyHTMLParser.java 11 Feb 2004 22:43:06 -0000 1.11
+++ JTidyHTMLParser.java 24 Mar 2004 03:00:56 -0000 1.12
@@ -35,8 +35,6 @@
/**
* HtmlParser implementation using JTidy.
*
- * @author TBA
- * @author <a href="mailto:[EMAIL PROTECTED]">Jordi Salvat i Alabart</a>
* @version $Revision$ updated on $Date$
*/
class JTidyHTMLParser extends HTMLParser
@@ -141,6 +139,11 @@
if (name.equalsIgnoreCase("link"))
{
urls.addURL(getValue(attrs,"href"),baseUrl);
+ break;
+ }
+ if (name.equalsIgnoreCase("script"))
+ {
+ urls.addURL(getValue(attrs,"src"),baseUrl);
break;
}
String back=getValue(attrs,"background");
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]