From cda8cc5931a60fd173ce1a6d48eb61b68ae0fec1 Mon Sep 17 00:00:00 2001 From: murakami Date: Thu, 30 Aug 2018 20:29:43 +0800 Subject: [PATCH 1/2] fixed last boolean attribute missed --- lib/parse-tag.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/parse-tag.js b/lib/parse-tag.js index 15b79b5..5aa9404 100644 --- a/lib/parse-tag.js +++ b/lib/parse-tag.js @@ -40,5 +40,9 @@ module.exports = function (tag) { expectingValueAfterEquals = false; }); + if(key) { + res.attrs[key] = key; // fixed last boolean attribute missed + } + return res; }; From 1c3639f7fdc424863d7f82753e29c58868e550e1 Mon Sep 17 00:00:00 2001 From: murakami Date: Thu, 30 Aug 2018 20:30:13 +0800 Subject: [PATCH 2/2] a blank --- lib/parse-tag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/parse-tag.js b/lib/parse-tag.js index 5aa9404..5899e39 100644 --- a/lib/parse-tag.js +++ b/lib/parse-tag.js @@ -41,7 +41,7 @@ module.exports = function (tag) { }); if(key) { - res.attrs[key] = key; // fixed last boolean attribute missed + res.attrs[key] = key; // fixed last boolean attribute missed } return res;