Tapestry
  1. Tapestry
  2. TAPESTRY-1326

' and " should be encoded as entity if output mode is not raw

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: 4.1.2
    • Fix Version/s: 4.1.5
    • Component/s: Framework
    • Labels:
      None

      Description

      ' and " should be encoded as ' and &qout; if output type is not raw.

      For example:

      <span jwcid="insert" /><br/>
      <span jwcid="insertRaw" />

      <component id="insert" type="Insert">
      <binding name="value">literal:&<>'"</binding>
      <binding name="raw">false</binding>
      </component>

      <component id="insertRaw" type="Insert">
      <binding name="value">literal:&<>'"</binding>
      <binding name="raw">true</binding>
      </component>

      The output is

      &<>'"<br/>
      &<>'"

      although I would have expected

      &<>'"<br/>
      &<>'"

      What do you think?
      Regards:
      Norbi

        Activity

        Hide
        Andreas Andreou added a comment -

        This is not the current behavior - so marking this as invalid...
        And anyway, if you want to see
        &<>'"
        in the output, you have to use CDATA, i.e. :
        <binding name="value"><![CDATA[literal:&<>'"]]></binding>

        Show
        Andreas Andreou added a comment - This is not the current behavior - so marking this as invalid... And anyway, if you want to see &<>'" in the output, you have to use CDATA, i.e. : <binding name="value"><![CDATA [literal:&<>'"] ]></binding>

          People

          • Assignee:
            Unassigned
            Reporter:
            Norbert Sándor
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development