Issue #410: More info about HTML5 tags (#3276)

This commit is contained in:
Baratali Izmailov 2016-06-15 02:46:07 +01:00 committed by Roman Ivanov
parent cd16d27e55
commit bfb13d4b28
1 changed files with 7 additions and 0 deletions

View File

@ -287,6 +287,13 @@ class MyCheck extends AbstractJavadocCheck {
Void HTML elements: <AREA>, <BASE>, <BASEFONT>, <BR>, <COL>, <FRAME>,
<HR>, <IMG>, <INPUT>, <ISINDEX>, <LINK>, <META>, <PARAM>.
</p>
<p>
To make Checkstyle support HTML5 tags whose end tag is optional and HTML5 void elements we should update Javadoc Parser
bacause each element that breaks <a href="#XHTML-style_rules">XHTML-style rules</a> have to be defined in Javadoc grammar.
In future we should update Javadoc grammar if those tag lists extend (new tags, new HTML standard, etc.).
</p>
<p>
If Checkstyle meets unknown tag (for example HTML5 tag)
it doesn't fail and parses this tag as <a href="apidocs/com/puppycrawl/tools/checkstyle/api/JavadocTokenTypes.html#HTML_TAG">HTML_TAG</a> Javadoc token type.