diff options
Diffstat (limited to 'src/html.js')
-rw-r--r-- | src/html.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/html.js b/src/html.js index 685b72ca..dd1d1960 100644 --- a/src/html.js +++ b/src/html.js @@ -1168,8 +1168,8 @@ export class Attributes { // Preserve existing merge semantics by funnelling each key through // the internal #addOneAttribute helper (handles class/style union, // unique merging, etc.) but avoid *per-object* validation overhead. - for (const [key, val] of Object.entries(obj)) { - this.#addOneAttribute(key, val); + for (const key of Reflect.ownKeys(obj)) { + this.#addOneAttribute(key, obj[key]); } // Match the original return style (list of results) so callers that |