From 2888fa158d67c1419199f152326e12a05618b53e Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 28 Aug 2026 17:30:31 +0100 Subject: Create objects without prototypes when used as map with arbitrary keys --- lib/style-reader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/style-reader.js') 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]) { -- cgit v1.2.3