Skip to content

Commit 965a327

Browse files
authored
Update html-end-tags doc (#228)
* Update html-end-tags doc * Improve wording
1 parent d611cd8 commit 965a327

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

docs/rules/html-end-tags.md

+3-14
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,12 @@
22

33
- :wrench: The `--fix` option on the [command line](http://eslint.org/docs/user-guide/command-line-interface#fix) can automatically fix some of the problems reported by this rule.
44

5-
This rule enforce the way of end tags.
6-
7-
- [Void elements] disallow end tags.
8-
- Other elements require end tags.
9-
105
## :book: Rule Details
116

12-
This rule reports the following elements:
7+
This rule reports:
138

14-
- [Void elements] which have end tags.
15-
- Other elements which do not have end tags and are not self-closing.
9+
- presence of and end tag on [Void elements](https://www.w3.org/TR/html51/syntax.html#void-elements)
10+
- absence of both an end tag (e.g. `</div>`) and a self-closing opening tag (e.g. `<div/>`) on other elements
1611

1712
:-1: Examples of **incorrect** code for this rule:
1813

@@ -37,9 +32,3 @@ This rule reports the following elements:
3732
## :wrench: Options
3833

3934
Nothing.
40-
41-
[Void elements]: https://www.w3.org/TR/html51/syntax.html#void-elements
42-
43-
## TODO: `<br></br>`
44-
45-
`parse5` does not recognize the illegal end tags of void elements.

0 commit comments

Comments
 (0)