From 28cdb47e557c814fcca60759f4cce43e9c0e9a47 Mon Sep 17 00:00:00 2001 From: Trevor Rowbotham Date: Wed, 8 Aug 2018 11:26:22 -0400 Subject: [PATCH] Make the DOMTokenList creation steps use "get an attribute value" This makes it so that if a DOMTokenList's associated element has an attribute that is the associated attribute's local name, at creation time, it will use the "get an attribute value" steps, which will always return a string. Previously, the this used the "get an attribute by namespace and local name" steps, which would return an Attr node if the associated element had an attribute that is the associated attribute's local name. Fixes #666. --- dom.bs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dom.bs b/dom.bs index ad8b27a3c..bd8bfb874 100644 --- a/dom.bs +++ b/dom.bs @@ -9525,8 +9525,8 @@ are to return the result of running get an attribute value given the asso
  • Let localName be associated attribute's local name.

  • Let value be the result of - getting an attribute given null, - localName, and element. + getting an attribute value given element and + localName.

  • Run the attribute change steps for element, localName, value, value, and null. @@ -10026,6 +10026,7 @@ Timo Tijhof, Tobie Langel, Tom Pixley, Travis Leithead, +Trevor Rowbotham, triple-underscore, Veli Şenol, Vidur Apparao,