DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25548>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25548 The Non-XML HTML Serialization Method is Broken ------- Additional Comments From [EMAIL PROTECTED] 2003-12-16 01:51 ------- Sorry, my bad, I had the illusion of the two solutions because when DOCTYPE output is turned on, Mozilla ignores <br></br> and considers it as <br>. MS-IE, however does not. So , I have no solution for you. :-( But the problem is very real (ie : I cannot get the HTMLSerializer to not "close" empty tags like img, meta, link and br) and it was working fine before. Furthermore, I don't see any kind of explanation by looking at the changelogs. I have Sun's JDK 1.4.1_01 for Linux on RH 7.3. Reverting to my ol' 2.0.0 version makes the problem go away. I don't know if 2.0.0 is the latest working version, but that's the version I was using since my failed update attempt. BTW, Here is how I instanciate the serializer : lOutputFormat = new OutputFormat(Method.HTML, "UTF-8", false); lOutputFormat.setDoctype("-//W3C//DTD HTML 4.01 Transitional//EN", "http://www.w3.org/TR/html4/loose.dtd"); lOutputFormat.setOmitXMLDeclaration(true); lOutputFormat.setOmitDocumentType(true); lOutputFormat.setPreserveSpace(false); lOutputFormat.setStandalone(false); lOutputFormat.setMediaType("text/html"); SerializerFactory lSerializerFactory = SerializerFactory.getSerializerFactory(lOutputFormat.getMethod()); Serializer lSerializer = lSerializerFactory.makeSerializer(lOutputFormat); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
