From ba8087077f6a0ce09da2937fabe975ed83c4d9fc Mon Sep 17 00:00:00 2001 From: Luke Warlow Date: Mon, 22 Apr 2024 14:13:29 +0100 Subject: [PATCH] Remove throw from set an attribute and move TT check down to replace an attribute --- dom.bs | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/dom.bs b/dom.bs index 6e7558dd..a63bb21e 100644 --- a/dom.bs +++ b/dom.bs @@ -6427,6 +6427,9 @@ boolean validate (default true), run these steps: attribute oldAttr with an attribute newAttr, run these steps:
    +
  1. Validate and set attribute value newAttr's value for + newAttr with oldAttr's element. +

  2. Replace oldAttr by newAttr in oldAttr's element's attribute list. @@ -6512,21 +6515,8 @@ string namespace (default null):

    attr's namespace, attr's local name, and element. -
  3. If oldAttr is attr, return attr. - -

  4. -

    If oldAttr is non-null, then:

    - - +
  5. If oldAttr is non-null, then replace + oldAttr with attr.

  6. Otherwise, append attr to element.