Details
-
Bug
-
Resolution: Done
-
Blocker
-
1.0.0.Alpha3
-
None
Description
When the XMLParser#parse method is called on a stream which contains comments, DOM creates a Node named "#comment" and the corresponding Node is created by Forge parser. After that, when the XMLParser#toXML method is called on the XML root node an exception is thrown.
At serialization Forge parser tries to create a Node with name "#comment" by using the method Document#createElement (which is illegal and result in a DOMException#INVALID_CHARACTER_ERR) instead of calling the method Document#createComment. IMO, the same problem could happen with others specific nodes.
Maybe Shrinkwrap descriptor project could have the same problem, but it needs further investigations...