From: <ad...@us...> - 2010-11-07 17:42:11
|
Revision: 1183 http://jtidy.svn.sourceforge.net/jtidy/?rev=1183&view=rev Author: aditsu Date: 2010-11-07 17:42:05 +0000 (Sun, 07 Nov 2010) Log Message: ----------- fixed test 443362 - discard nodes with null tag in ParsePre Modified Paths: -------------- branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/ParserImpl.java Modified: branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/ParserImpl.java =================================================================== --- branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/ParserImpl.java 2010-11-07 17:19:38 UTC (rev 1182) +++ branches/CodeUpdateAndJava5/src/main/java/org/w3c/tidy/ParserImpl.java 2010-11-07 17:42:05 UTC (rev 1183) @@ -1942,6 +1942,11 @@ { continue; } + + if (node.tag == null) { + lexer.report.warning(lexer, pre, node, ErrorCode.DISCARDING_UNEXPECTED); + continue; + } // strip unexpected tags if (!lexer.preContent(node)) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |