From 545f700e39ca934e9391bc54c95dd6157e6e49ee Mon Sep 17 00:00:00 2001 From: Shawn Presser Date: Wed, 17 Jul 2019 03:36:46 -0500 Subject: [PATCH] Fix inital value of tags E.g. --- src/DOM.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/DOM.js b/src/DOM.js index 82fbc9effd..27cd5a4718 100644 --- a/src/DOM.js +++ b/src/DOM.js @@ -712,6 +712,12 @@ class Element extends Node { constructor(window, tagName = 'DIV', attrs = [], value = '', location = null) { super(window); + for (let { name, value: v } of attrs) { + if (name === 'value') { + value = v; + } + } + this.tagName = tagName; this.attrs = attrs; this.value = value;