Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-6048

Form inputs in inline mode are surrounded by a <pre> element

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0 M3
    • 3.0 M2
    • {Unused} APIs
    • None
    • Unknown

    Description

      There's a comment in XWikiDocument.display:

      // If the Syntax id is not "xwiki/1.0", i.e. if the new rendering engine is used then we need to
      // protect the content with a <pre> since otherwise whitespaces will be stripped by the HTML macro
      // used to surround the object property content (see below).
      

      But this comment is wrong, the html macro doesn't collapse whitespaces inside <input> and <textarea> elements.

      The <pre> element causes problems, since its styles must be manually overridden to revert back to non-pre behavior. Related: XWIKI-4652 and XE-824.

      Attachments

        Issue Links

          Activity

            People

              sdumitriu Sergiu Dumitriu
              sdumitriu Sergiu Dumitriu
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: