@samitouri / QOS-React-2 / commits / cbfbb54c1d

omitClose for all void elements

According to http://www.w3.org/TR/html5/syntax.html#void-elements the following elements should not specify end tags: area, base, br, col, embed, hr, img, input, keygen, link, meta, param, source, track, wbr

Laurence Rowe committed Feb 25, 2014 at 20:03 UTC cbfbb54c1d0876cd99bc7f1b05cd70c701dd18b7
1 file changed +5 -5
src/browser/ReactDOM.js
+5 -5
@@ -72,12 +72,12 @@ var ReactDOM = objMapKeyVal({
72 a: false,
73 abbr: false,
74 address: false,
75 - area: false,
75 + area: true,
76 article: false,
77 aside: false,
78 audio: false,
79 b: false,
80 - base: false,
80 + base: true,
81 bdi: false,
82 bdo: false,
83 big: false,
@@ -127,7 +127,7 @@ var ReactDOM = objMapKeyVal({
127 label: false,
128 legend: false,
129 li: false,
130 - link: false,
130 + link: true,
131 main: false,
132 map: false,
133 mark: false,
@@ -156,7 +156,7 @@ var ReactDOM = objMapKeyVal({
156 section: false,
157 select: false,
158 small: false,
159 - source: false,
159 + source: true,
160 span: false,
161 strong: false,
162 style: false,
@@ -178,7 +178,7 @@ var ReactDOM = objMapKeyVal({
178 ul: false,
179 'var': false,
180 video: false,
181 - wbr: false,
181 + wbr: true,
182
183 // SVG
184 circle: false,