-
Bug
-
Resolution: Fixed
-
P3
-
15
-
None
-
b29
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8247891 | 16 | Jonathan Gibbons | P3 | Resolved | Fixed | b03 |
JDK-8250064 | 15.0.2 | Jonathan Gibbons | P3 | Resolved | Fixed | b01 |
JDK-8250362 | 15.0.1 | Jonathan Gibbons | P3 | Resolved | Fixed | b03 |
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.)
$ 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.)
- backported by
-
JDK-8247891 DocCommentParser should not reject standalone '>'
- Resolved
-
JDK-8250064 DocCommentParser should not reject standalone '>'
- Resolved
-
JDK-8250362 DocCommentParser should not reject standalone '>'
- Resolved