Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8026506

Re-design isEmpty() and isValid() methods of HtmlTree

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8
    • Fix Version/s: tbd_minor
    • Component/s: tools
    • Labels:

      Description

      The HtmlTree simply discards invalid nodes which should not have been created in the first place. We need to either rethink empty or come up with an alternative name e.g. A <br> tag should not show up as empty just because it cannot contain content. So we need some method on Content that checks if it has content to be displayed.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bpatel Bhavesh Patel (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: