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

The id attribute is dropped from headings when converting from HTML

    XMLWordPrintable

Details

    • Integration
    • N/A
    • N/A

    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

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

            Dates

              Created:
              Updated:
              Resolved: