DocCommentParser should not reject standalone '>'

XMLWordPrintable

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

        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.)

              Assignee:
              Jonathan Gibbons
              Reporter:
              Jonathan Gibbons
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: