Uploaded image for project: 'XWiki Rendering'
  1. XWiki Rendering
  2. XRENDERING-612

Mailto links are incorrectly parsed

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A
    • Pull Request accepted

    Description

      The following test is failing:

      .#-----------------------------------------------------
      .input|xhtml/1.0
      .#-----------------------------------------------------
      <p>one <a href="mailto:john@doe.com">two</a> three</p>
      .#-----------------------------------------------------
      .expect|event/1.0
      .#-----------------------------------------------------
      beginDocument
      beginParagraph
      onWord [one]
      onSpace
      beginLink [Typed = [true] Type = [mailto] Reference = [john@doe.com]] [false]
      onWord [two]
      endLink [Typed = [true] Type = [mailto] Reference = [john@doe.com]] [false]
      onSpace
      onWord [three]
      endParagraph
      endDocument
      

      What we get:

      beginDocument
      beginParagraph
      onWord [one]
      onSpace
      beginLink [Typed = [true] Type = [path] Reference = [mailto:john@doe.com]] [false]
      onWord [two]
      endLink [Typed = [true] Type = [path] Reference = [mailto:john@doe.com]] [false]
      onSpace
      onWord [three]
      endParagraph
      endDocument
      

      Attachments

        Activity

          People

            MichaelHamann Michael Hamann
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: