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

Macro parameter names with camel case style end up in lowercase in parameter descriptor map

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 1.8.1
    • {Unused} Rendering 2.0
    • None
    • any
    • macro parameter descriptor camel case lowercase

    Description

      It seems that macro parameter names are case sensitive. Take for instance the cssClass parameter of the box macro:

      {{box cssClass="foo"}}bar{{/box}}
      
      {{box cssclass="foo"}}bar{{/box}}
      

      The CSS class is applied only in the first case, when the parameter name has camel case style. The problem is that the key to the parameter descriptor in the parameter descriptor map is in lowercase, although the name field of the parameter descriptor is in camel case.

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: