fix: improve handling of self-closing tags with unquoted attributes

pull/14615/head
Yang Pan 2 years ago
parent 863232e562
commit 3d990a02ef

@ -505,7 +505,7 @@ function read_attribute(parser) {
if (parser.eat('=')) {
parser.allow_whitespace();
if (parser.template[parser.index] === '/') {
if (parser.template[parser.index] === '/' && parser.template[parser.index + 1] === '>') {
const char_start = parser.index;
parser.index++; // consume '/'
value = [

Loading…
Cancel
Save