From 76c59f02d05acaa6f0fdc484fcca72080b779851 Mon Sep 17 00:00:00 2001 From: Emil Bay Date: Sun, 12 Jun 2016 22:43:50 +0200 Subject: [PATCH] Fix #25 unquoted attributes --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 26e80e9..f254f12 100644 --- a/index.js +++ b/index.js @@ -201,7 +201,7 @@ module.exports = function (h, opts) { state = ATTR_VALUE i-- } else if (state === ATTR_VALUE && /\s/.test(c)) { - res.push([ATTR_BREAK],[ATTR_VALUE,reg]) + res.push([ATTR_VALUE,reg],[ATTR_BREAK]) reg = '' state = ATTR } else if (state === ATTR_VALUE || state === ATTR_VALUE_SQ