From 4bef05276e7c48902c47954165d4c9b9922aec12 Mon Sep 17 00:00:00 2001 From: Domenic Denicola Date: Tue, 9 Aug 2016 12:19:20 +0900 Subject: [PATCH] Fix "create an element for a token" with duplicate attributes Fixes #1636. --- source | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source b/source index ab7fe6a890d..7180d7868aa 100644 --- a/source +++ b/source @@ -103201,8 +103201,8 @@ dictionary StorageEventInit : EventInit {
  • Let local name be the tag name of the token.

  • -
  • Let is be the value of the "is" attribute in the - given token, if such an attribute exists, or null otherwise.

  • +
  • Let is be the value of the first "is" attribute + in the given token, if such an attribute exists, or null otherwise.

  • Let definition be the result of looking up a custom element definition given document, given @@ -103251,8 +103251,9 @@ dictionary StorageEventInit : EventInit {

  • -

    Append each attribute in the given - token to element.

    +

    For each attribute in the given token, if element does not already have an + attribute with the same name, append the + attribute to element.

    This can enqueue a custom element callback reaction for the attributeChangedCallback, which might run immediately (in the next