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

Nested HTML spans are wrongly converted to XDOM

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 14.10.3
    • Wikimodel
    • None
    • Unknown

    Description

      Steps to reproduce

      Convert the following HTML to XDOM using html/4.01 syntax:

      <span itemprop="credit">
         <span itemprop="author">Lorem Ipsum</span>
         <span itemprop="provider">Id sec amor</span>
      </span>
      

      Expected result

      The produced XDOM should consist of a GroupBlock with attribute itemprop="credit" and containing two FormatBlocks.

      Actual result

      The produced XDOM consists of a ParagraphBlock without any attribute containing two FormatBlocks: the top level span with its itemprop attribute has disappeared from the structure.

      Attachments

        Activity

          People

            Unassigned Unassigned
            slauriere slauriere
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: