Closed ghost closed 9 years ago
Seems you don't even try to check because it returns <input/>
.
Why you say that? A void element doesn't have a end tag. And you clearly show to me here it's has an end tag. Still an issue in your script.
Reference:
From the W3C specs: http://www.w3.org/TR/html-markup/syntax.html#syntax-elements
There's no end tag in that case, just <input/>
.
Ah! I see it now. I was thinking about /
as an end-tag. It isn't. Sorry!
Void elements shouldn't have a end tag.
createNode("input").renderToString()
result:
</input>
expected:<input>