Uploaded image for project: 'MyFaces Trinidad'
  1. MyFaces Trinidad
  2. TRINIDAD-997

<span> tag with no attributes is not rendered when using Trinidad

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • 1.0.6-core
    • None
    • Components, Facelets, Skinning
    • None

    Description

      We recently integrated Trinidad into our application to evaluate it. Immediately we noticed that most pages would not render correctly. We discovered the problem was that if a <span> tag had no attributes (id, class, etc.), it would not be rendered. For example:

      <span>
      <label>Example</label>
      <input type="text" value="exampleInput"></input>
      </span>

      Renders as:

      <label>Example</label>
      <input type="text" value="exampleInput"></input>

      In most applications this would not matter since by default the <span> tag has no style, but we overrode the CSS of the <span> tag to have very unique styles:

      form fieldset span

      { position: relative; display: block; width: 100%; margin-bottom: 6px; overflow: hidden; }

      If the <span> tag was removed, we lost these styles and the page would be very distorted.

      Our only workaround right now is to update the hundreds of <span> tags throughout our application and give them a class attribute so they will render.

      Attachments

        1. elementOptimization.patch
          5 kB
          Jonathan Herr

        Activity

          People

            darkarena Scott O'Bryan
            jtherr Jonathan Herr
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: