aboutsummaryrefslogtreecommitdiff
path: root/lib/style-reader.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-08-28 17:30:31 +0100
committerMichael Williamson <mike@zwobble.org>2026-08-28 17:30:31 +0100
commit2888fa158d67c1419199f152326e12a05618b53e (patch)
treec239ed44678ba87f29ff9b84625cf1a0ba48a68a /lib/style-reader.js
parent31f0c370be4b95ac4fa285fea3be970606735f16 (diff)
Create objects without prototypes when used as map with arbitrary keys
Diffstat (limited to 'lib/style-reader.js')
-rw-r--r--lib/style-reader.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/style-reader.js b/lib/style-reader.js
index 6305c59..4582e04 100644
--- a/lib/style-reader.js
+++ b/lib/style-reader.js
@@ -257,7 +257,7 @@ function htmlPathRule() {
capture(freshRule),
capture(separatorRule)
).map(function(tagName, attributesList, fresh, separator) {
- var attributes = {};
+ var attributes = Object.create(null);
var options = {};
attributesList.forEach(function(attribute) {
if (attribute.append && attributes[attribute.name]) {