Skip to content

Commit

Permalink
Accomodate HTML void elements
Browse files Browse the repository at this point in the history
  • Loading branch information
glebm committed Nov 6, 2016
1 parent 13d656c commit 699f9a5
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions spec.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2026,8 +2026,8 @@ the string `/>`.\
**End condition:** line is followed by a [blank line].

7. **Start condition:** line begins with a complete [open tag]
or [closing tag] (with any [tag name] other than `script`,
`style`, or `pre`) followed only by [whitespace]
or [closing tag] (with any [tag name] other than `pre`, a [raw text element]
name, or a [void element] name followed only by [whitespace]
or the end of the line.\
**End condition:** line is followed by a [blank line].

Expand Down Expand Up @@ -8610,6 +8610,17 @@ An [HTML tag](@) consists of an [open tag], a [closing tag],
an [HTML comment], a [processing instruction], a [declaration],
or a [CDATA section].

A [raw text element](@) is one of the following elements
as [defined](http://w3c.github.io/html/syntax.html#raw-text-elements)
by the HTML spec:
`script`, `style`.

A [void element](@) is one of the following elements
as [defined](http://w3c.github.io/html/syntax.html#void-elements)
by the HTML spec:
`area`, `base`, `br`, `col`, `embed`, `hr`, `img`, `input`, `link`, `menuitem`,
`meta`, `param`, `source`, `track`, `wbr`.

Here are some simple open tags:

```````````````````````````````` example
Expand Down

0 comments on commit 699f9a5

Please sign in to comment.