[Httpunit-commit] CVS: httpunit/src/com/meterware/httpunit HTMLPage.java,1.24,1.25
Brought to you by:
russgold
|
From: Russell G. <rus...@us...> - 2003-02-28 17:29:56
|
Update of /cvsroot/httpunit/httpunit/src/com/meterware/httpunit
In directory sc8-pr-cvs1:/tmp/cvs-serv18400/src/com/meterware/httpunit
Modified Files:
HTMLPage.java
Log Message:
Correct incompatibility between JTidy and embedded Scripts
Index: HTMLPage.java
===================================================================
RCS file: /cvsroot/httpunit/httpunit/src/com/meterware/httpunit/HTMLPage.java,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -r1.24 -r1.25
--- HTMLPage.java 4 Feb 2003 05:32:03 -0000 1.24
+++ HTMLPage.java 28 Feb 2003 17:29:51 -0000 1.25
@@ -81,7 +81,7 @@
for (int i = 0; i < nl.getLength(); i++) {
Node scriptNode = nl.item(i);
String language = NodeUtils.getNodeAttribute( scriptNode, "language", null );
- if (language != null && !language.startsWith( "JavaScript ")) continue;
+ if (language != null && !language.startsWith( "JavaScript")) continue;
String scriptLocation = NodeUtils.getNodeAttribute( scriptNode, "src", null );
if (scriptLocation == null) {
scripts.add( NodeUtils.asText( scriptNode.getChildNodes() ) );
|