[Htmlparser-cvs] htmlparser/src/org/htmlparser/scanners TagScanner.java,1.32,1.33
Brought to you by:
derrickoswald
|
From: <der...@us...> - 2003-08-15 21:01:42
|
Update of /cvsroot/htmlparser/htmlparser/src/org/htmlparser/scanners In directory sc8-pr-cvs1:/tmp/cvs-serv3543/scanners Modified Files: TagScanner.java Log Message: Case maintaining toHtml() output for tag attributes. With these changes, the output of toHtml() now reflects the upper/lower case values of the input for the contents of tags, i.e. attribute names maintain their original case. They're still out of order from how they are parsed, but this is a first step. Rather than adjust all the test cases right now, the ParserTestCase assertSameString() method now checks a global flag to see if case matters when comparing strings. As of this drop it ignores case when comparing HTML output. This will soon change. Index: TagScanner.java =================================================================== RCS file: /cvsroot/htmlparser/htmlparser/src/org/htmlparser/scanners/TagScanner.java,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** TagScanner.java 11 Aug 2003 00:18:30 -0000 1.32 --- TagScanner.java 15 Aug 2003 20:51:48 -0000 1.33 *************** *** 202,206 **** Tag thisTag = scan(tag,url,reader,currLine); thisTag.setThisScanner(this); ! thisTag.setAttributes(tag.getAttributes()); return thisTag; } --- 202,206 ---- Tag thisTag = scan(tag,url,reader,currLine); thisTag.setThisScanner(this); ! thisTag.setAttributesEx(tag.getAttributesEx()); return thisTag; } |