XMLC 2.2.1 release

David Li <[email protected]> Wed, 17 Sep 2003 23:04:40 +0900
Newsgroups gmane.comp.java.enhydra.xmlc,gmane.comp.java.enhydra.general
Message-ID <[email protected]>

http://forge.objectweb.org/projects/xmlc/

Bug fixes in 2.2.1

-- Issue with LazyDOM getChildNodes() returning zero nodes, even though 
they existed         

Fixed issue where when using the lazydom and calling getChildNodes() on 
an HTMLFormElement or an HTMLSelectElement, no nodes were returned 
unless getFirstChild() was called first.  This was caused by the fact 
that the lazydom uses slightly modified copies of the xerces html impl 
classes and HTMLFormElementImpl and HTMLSelectELementImpl both override 
getChildNodes() for reasons stated in the javadoc.  However, we weren't 
taking this into account.  As such, getChildNodes() (on these two 
specific elements) would never expand its children.  Modified 
LazyElementNoNS#expandChildren() to be protected in order for 
subclasses to call the method and added a call to it in the 
getChildNodes() methods of said problematic implementation classes via 
the sed script in edit-html-dom.sh (sed script modification provided by 
Petr Stehlik).

-- Issue with internal use of OutputOptions quirks         

Fixed issue where toDocument() was internally modifying the 
OutputOptions so we ended up using quirks by default.  In this case, it 
was stripping id's off of SPAN tags.  Also get OutputOptions from 
DOMFormatter.getDefaultOutputOptions(Document) to make sure we pick up 
any quirks we set by default for certain types of documents.  
Currently, there are none, but this will allow for a central place to 
pick this info up if quirks are ever added there.

-- Issue with command line option usage notes being out of sync with 
current available options         

Updated some of the output for the command line options to reflect 
reality.  Updated the "-dom" option to include all the options 
available raher than just "lazydom" and "xerces".  Updated "-ssibase" 
opton to be more clear.  Marked the "-for-recomp" option as being 
deprecated and that "-for-deferred-parsing" should be used instead.