Thanks for looking into this, Paul. Below is a very simple test case. To compile: ...
15 years, 9 months ago
(2010-06-29 19:59:55 UTC)
#3
Thanks for looking into this, Paul.
Below is a very simple test case.
To compile:
% javac -classpath shindig-gadgets.jar Test.java
To run:
% java -classpath
google-collections-1.0.jar:guice-2.0.jar:nekohtml-1.9.13.jar:shindig-gadgets.jar:.
Test
Without my fix, the output will be: "<ABC></ABC>"
With my fix, the output will be: "<ABC></ABC><!--XYZ-->"
import javax.xml.parsers.*;
import org.w3c.dom.*;
import org.apache.shindig.gadgets.parse.*;
public class Test {
public static void main(String[] args) throws Exception {
Document doc =
DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
doc.appendChild(doc.createElement("ABC"));
doc.appendChild(doc.createComment("XYZ"));
DefaultHtmlSerializer serializer = new DefaultHtmlSerializer();
System.out.println(serializer.serialize(doc));
}
}
On 2010/06/29 17:48:38, Paul Lindner wrote:
> Is there a test case? I started working on one with this patch but was
unable
> to get it working..
Issue 1518041: org.apache.shindig.gadgets.parse.DefaultHtmlSerializer#serialize drops trailing comments
(Closed)
Created 15 years, 10 months ago by janluehe
Modified 15 years, 9 months ago
Reviewers: shindig.remailer_gmail.com, Paul Lindner
Base URL: http://svn.apache.org/repos/asf/shindig/trunk/
Comments: 0