Uploaded image for project: 'Tapestry'
  1. Tapestry
  2. TAPESTRY-1604

Attributes of elements do not have entity values quoted (including the " character itself) resulting in invalid markup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 5.0.5
    • 5.0.6
    • None
    • None

    Description

      Simple example to demonstrate. The initial value of fullName in the bean has a couple of quotes in it. These are written directly to the HTML output instead of being turned into " entities.

      import org.apache.tapestry.annotations.Persist;

      public class Example {

      @Persist
      private MyBean myBean;

      public MyBean getMyBean()

      { return myBean; }

      public void setMyBean(MyBean myBean)

      { this.myBean = myBean; }

      }

      public class MyBean {
      private String fullName = "Fred \"Fredmeister\" Flintstone";

      public String getFullName()

      { return fullName; }

      public void setFullName(String fullName)

      { this.fullName = fullName; }

      }

      Example.html:

      <html xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd">
      <body>
      <t:beanEditForm object="myBean" />
      </body>
      </html>

      Attachments

        Activity

          People

            hlship Howard Lewis Ship
            david_peterson David Peterson
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: