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

DocCommentParser should not reject standalone '>'

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 15
    • Fix Version/s: 15
    • Component/s: tools
    • Labels:
      None

      Backports

        Description

        In HTML 5 (and even previously in HTML4), a freestanding ">" is not an error, and should not be rejected by the DocCommentParser.

        $ more play/html/*.html | cat
        <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
        <html>
        <head><title>title</title></head>
        <body>
        here it is > there it was
        </body
        </html>

        <!DOCTYPE HTML>
        <html>
        <head><title>title</title></head>
        <body>
        here it is > there it was
        </body
        </html>

        $ /usr/local/bin/tidy -e --gnu-emacs true -q play/html/*.html

        (Separately, at some point, we should figure out how to handle ambiguous & as well, but that's a different issue.)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jjg Jonathan Gibbons
                  Reporter:
                  jjg Jonathan Gibbons
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: