[Htmlparser-cvs] htmlparser/src/org/htmlparser/tests/parserHelperTests CompositeTagScannerHelperTest
Brought to you by:
derrickoswald
From: <der...@us...> - 2003-05-24 21:04:47
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/parserHelperTests In directory sc8-pr-cvs1:/tmp/cvs-serv7741/org/htmlparser/tests/parserHelperTests Modified Files: CompositeTagScannerHelperTest.java Log Message: Fixed bug #741769 ScriptScanner doesn't handle quoted </script> tags Major overhaul of ScriptScanner. It now uses the scan() method of CompositeTagScanner (i.e. doesn't override). CompositeTagScanner now has a balance_quotes member field that dictates whether strings tags are scanned honouring single and double quotes. This affected the call chain through NodeReader and StringScanner which now have this parameter. StringScanner now correctly handles quotes if asked. The ignoreState stuff is removed, it didn't work anyway since a single StringScanner is used recursively by the NodeReader, and the member field would have been tromped. Sorry to all those who have broken code because of this, but it's for the better. Really. Index: CompositeTagScannerHelperTest.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/tests/parserHelperTests/CompositeTagScannerHelperTest.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** CompositeTagScannerHelperTest.java 19 May 2003 02:49:58 -0000 1.7 --- CompositeTagScannerHelperTest.java 24 May 2003 21:04:44 -0000 1.8 *************** *** 48,52 **** protected void setUp() { helper = ! new CompositeTagScannerHelper(null,null,null,null,null); } --- 48,52 ---- protected void setUp() { helper = ! new CompositeTagScannerHelper(null,null,null,null,null,false); } |