Forrest
  1. Forrest
  2. FOR-743

siteinfo-feedback contract returns multiple nested a<href> declarations.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.8
    • Fix Version/s: 0.8
    • Labels:
      None

      Description

      This description taken from http://marc.theaimsgroup.com/?l=forrest-dev&m=113313199327182&w=2

      >3. index.fv provided with /samples/ has this for the footer feedback
      >contract :-
      >
      ><forrest:contract name="siteinfo-feedback">
      > <forrest:properties contract="siteinfo-feedback">
      > <forrest:property name="siteinfo-feedback">
      > <feedback to="webmaster@foo.com"
      > href="mailto:webmaster@foo.com?subject=Feedback&#160;" >
      > Send feedback about the website to:
      > </feedback>
      > </forrest:property>
      > </forrest:properties>
      > </forrest:contract>
      >
      >The code this produces is :-
      >
      ><div id="siteinfo-feedback">
      > Send feedback about the website to:
      > <a id="feedbackto"
      >href="mailto:webmaster@foo.com?subject=Feedback samples/index.html"><a
      >href="mailto:webmaster@foo.com">webmaster at
      > foo.com</a></a></div>
      >
      >which is incorrect nesting of the <a> element and also multiple declarations
      >of the href and mailto when there is no need. Should this not read
      >
      ><div id="siteinfo-feedback">
      > Send feedback about the website to:
      > <a id="feedbackto"
      >href="mailto:webmaster@foo.com?subject=Feedback
      >samples/index.html"></a></div>
      >
      >Where is the extra.. <a href="mailto:webmaster@foo.com">webmaster at
      >foo.com</a> ..coming from ??

        Issue Links

          Activity

          Hide
          Cyriaque Dupoirieux added a comment -
          This problem comes from the link rewritting.

          Add the ability to "escape" mailto addresses or links in order to avoid they are automatically rewritten by forrest.
          If a link or an address must appear in the text of the site, but the user does not need a real link he can prefix both by '\' character.
          Examples :
          - \xxx.yyy@zzz.www will not be rewritten as a mailto link but just like text - without the \ -
          cf. http://svn.apache.org/viewcvs.cgi?rev=354793&view=rev
          Show
          Cyriaque Dupoirieux added a comment - This problem comes from the link rewritting. Add the ability to "escape" mailto addresses or links in order to avoid they are automatically rewritten by forrest. If a link or an address must appear in the text of the site, but the user does not need a real link he can prefix both by '\' character. Examples : - \ xxx.yyy@zzz.www will not be rewritten as a mailto link but just like text - without the \ - cf. http://svn.apache.org/viewcvs.cgi?rev=354793&view=rev

            People

            • Assignee:
              Cyriaque Dupoirieux
              Reporter:
              Gavin
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development