Skip to content

Commit

Permalink
Remove ul and ol from list of optional tags, they are NOT optional
Browse files Browse the repository at this point in the history
  • Loading branch information
vithar committed Aug 3, 2017
1 parent 58916eb commit 3e777b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/bemhtml/index.js
Expand Up @@ -117,8 +117,8 @@ BEMHTML.prototype.render = function(context, entity, tag, js, bem, cls, mix,
};

var OPTIONAL_END_TAGS = {
// html4 https://html.spec.whatwg.org/multipage/syntax.html#optional-tags
html: 1, head: 1, body: 1, p: 1, ul: 1, ol: 1, li: 1, dt: 1, dd: 1,
// https://www.w3.org/TR/html4/index/elements.html
html: 1, head: 1, body: 1, p: 1, li: 1, dt: 1, dd: 1,
colgroup: 1, thead: 1, tbody: 1, tfoot: 1, tr: 1, th: 1, td: 1, option: 1,

// html5 https://www.w3.org/TR/html5/syntax.html#optional-tags
Expand Down

0 comments on commit 3e777b7

Please sign in to comment.