Uploaded image for project: 'Forrest (Retired)'
  1. Forrest (Retired)
  2. FOR-241

character entities (e.g. ampersand) are expanded again for href or src attributes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.6, 0.7, 0.8, 0.9
    • 0.9
    • Core operations
    • None

    Description

      If I have a url like this inside the XML source:

      http://sourceforge.net/sflogo.php?group_id=comics-grabber&type=1

      validate-xdocs fails because it wants the literal & to be typed out as
      & instead. So I correct it to become:

      http://sourceforge.net/sflogo.php?group_id=comics-grabber&type=1

      However, the generated HTML has the entity resolution UNDONE!:

      http://sourceforge.net/sflogo.php?group_id=comics-grabber&type=1

      This HTML fails validation as 4.01 transitional.

      David Crossley adds:
      There is a demonstration of the problem in the document
      src/documentation/content/xdocs/docs/dreams.xml
      The ampersand in the link element text is properly handled but
      the ampersand in the link href attribute is not.

      Attachments

        Activity

          People

            Unassigned Unassigned
            diwakergupta Diwaker Gupta
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: