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

DocCommentParser should not reject standalone '>'

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 15
    • 15
    • tools
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: