Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1353

HtmlResponseWriterImpl - Prematurely Closes HTML Elements

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1.5-SNAPSHOT
    • 2.0.1
    • General
    • None
    • Facelets, JBoss Seam

    Description

      http://svn.apache.org/viewvc/myfaces/shared/trunk/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlResponseWriterImpl.java?view=markup

      Sometimes ResponseWriters are used to supplement other markups and in JBoss Seam's Blog example, we provide RSS feeds:

      he following facelets template:
      >>
      >> <link>foo</link>
      >>
      >> generates:
      >>
      >> <link/>foo

      This is driven by the static set 's_emptyHtmlElements' where the closeIfNecessary() closes elements before they have a chance to be closed by the user of the ResponseWriter. The logic should be if the endElement is written and there's no body, then use that specialized set to determine if the element should be written as closed or not.

      I'm not sure if the logic was setup to correct issues with errant Renderers, but correcting HTML markup should only be handling cases where a closed element will not work (span, div, script, etc)--- not the other way around.

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            jhook Jacob John Hookom
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: