Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/scanners
In directory sc8-pr-cvs1:/tmp/cvs-serv16902/scanners
Modified Files:
ScriptScanner.java
Log Message:
Eliminated ParserHelper static class.
Add fixAttributes() to handle bad tags.
Provide for more than just an equals sign between the attribute name and the value.
Unquote the values in getAttributes() hashtable.
Fixed a bug regarding factory creation in script scanner.
Returned temporaryFailures classes to servicability.
Skip JSP testing, fix tests broken because of unquoted attribute values.
Some JavaDoc cleanup.
Index: ScriptScanner.java
===================================================================
RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/scanners/ScriptScanner.java,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** ScriptScanner.java 5 Oct 2003 13:49:53 -0000 1.41
--- ScriptScanner.java 13 Oct 2003 21:48:13 -0000 1.42
***************
*** 127,131 ****
else
// TODO: need to remove this cast
! last = (StringNode)lexer.createStringNode (lexer, node.elementBegin (), node.elementEnd ());
}
else if (node instanceof RemarkNode)
--- 127,131 ----
else
// TODO: need to remove this cast
! last = (StringNode)factory.createStringNode (lexer, node.elementBegin (), node.elementEnd ());
}
else if (node instanceof RemarkNode)
***************
*** 134,139 ****
last.setEndPosition (node.getEndPosition ());
else
// TODO: need to remove this cast
! last = (StringNode)lexer.createStringNode (lexer, node.elementBegin (), node.elementEnd ());
}
else // StringNode
--- 134,142 ----
last.setEndPosition (node.getEndPosition ());
else
+ {
// TODO: need to remove this cast
! // last = (StringNode)factory.createStringNode (lexer, node.elementBegin (), node.elementEnd ());
! last = (StringNode)factory.createStringNode (lexer, node.elementBegin (), node.elementEnd ());
! }
}
else // StringNode
|