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

The id attribute is dropped from headings when converting from HTML

    Details

    • Tests:
      Integration
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      The following HTML:

      <h1 id="one" class="two">
        <span>Heading</span>
      </h1>
      <p id="three">Paragraph</p>
      

      gets converted to:

      (% class="two" %)
      = heading =
      
      (% id="three" %)
      Paragraph
      

      The id attribute is dropped from the heading. This happens for any level of heading. I suspect the reason is because the rendering thinks the id was generated.

        Attachments

          Activity

            People

            • Assignee:
              vmassol Vincent Massol
              Reporter:
              mflorea Marius Dumitru Florea
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: