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

Mailto links are incorrectly parsed

    XMLWordPrintable

    Details

    • Tests:
      Unit
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Pull Request Status:
      Pull Request accepted
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved: