Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-13664

EDT firstChild call will return a text element when the source code is formatted to have one element per line

    Details

    • Sprint:
      4.5.0.Alpha3 - Sprint 3, 4.5.0.Alpha3 - Sprint 5

      Description

      Formatting the generated html and viewing the result in chrome leads to an error in the EDT call:
      this.frozenHeaderPartElement.firstChild.rows. This is because when the element is followed by a newline, a text element is returned from the firstChild call.

      Some solutions to this are discussed in the stackoverflow question:
      http://stackoverflow.com/questions/2299807/element-firstchild-is-returning-textnode-instead-of-an-object-in-ff

      I recommend we use jQuery here to resolve the first child in a cross-browser way.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bleathem Brian Leathem
                Reporter:
                bleathem Brian Leathem
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 30 minutes
                  30m
                  Remaining:
                  Remaining Estimate - 30 minutes
                  30m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified