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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0 M2
    • Fix Version/s: 3.0 M3
    • Component/s: {Unused} APIs
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

                Dates

                Created:
                Updated:
                Resolved: