Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-1764

always render <tr><td> if a datatable has no rows to stay html/xhtml dtd conformant?

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.2.2
    • General
    • None

    Description

      According to dtd (html and xhtml) a <tbody> must not be empty. it must at least have one <tr> which must at least have one <td>.
      And in xhtml each <table> must have a <tbody>.
      So, what should the dataTable render when there is a rowCount of 0?

      Perhaps just rendering <tbody><tr><td></td></tr></tbody> is ok? Empty cells won't be rendered anyway.
      But is it really ok for all browsers?

      WDYT?

      Attachments

        1. always_tr_in_tbody.patch
          1 kB
          Manfred Geiler

        Issue Links

          Activity

            People

              manolito Manfred Geiler
              manolito Manfred Geiler
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: