[ https://issues.apache.org/jira/browse/XALANJ-2276?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Minchau closed XALANJ-2276. --------------------------------- closing this issue. > <!DOCTYPE html .. is output for html output, even when the first element is > not "html" > ---------------------------------------------------------------------------------------- > > Key: XALANJ-2276 > URL: https://issues.apache.org/jira/browse/XALANJ-2276 > Project: XalanJ2 > Issue Type: Bug > Components: Serialization > Affects Versions: 2.7 > Reporter: Brian Minchau > Assignee: Brian Minchau > Fix For: 2.7.1 > > Attachments: mini-patch7.txt, patch3.txt, patch4.txt, patch5.txt, > patch6.txt > > > Probably a minor bug, but the code in ToHTMLStream.java has this line: > writer.write("<!DOCTYPE html"); > in the method startDocumentInternal. > This method can be triggered by the fact that we got a startElement() call. > The DOCTYPE should apply to the first element, which is usually "html", but > could be "HTML" "HtMl" "spider" "fly" ... or whatever. > The code should be made a little more robust to get the name of the first > element > and the name in the DOCTYPE to be the same. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]