[whatwg/dom] Handle attribute changes after changing attribute (PR #1176)

At least in chromium, synchronous internal listeners for attribute changes which are run as "attribute change steps" are run after the attribute is actually changed, not before.

This affects popover attribute related algorithms in HTML: https://github.com/whatwg/html/pull/9048#discussion_r1141122175

<!--
Thank you for contributing to the DOM Standard! Please describe the change you are making and complete the checklist below if your change is not editorial.
-->

- [ ] At least two implementers are interested (and none opposed):
   * Google
   * …
- [x] [Tests](https://github.com/web-platform-tests/wpt) are written and can be reviewed and commented upon at:
   * The tests in this HTML PR effectively test this: https://github.com/whatwg/html/pull/9048
- [ ] [Implementation bugs](https://github.com/whatwg/meta/blob/main/MAINTAINERS.md#handling-pull-requests) are filed:
   * Chromium: …
   * Gecko: …
   * WebKit: …
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/dom/pull/1176

-- Commit Summary --

  * Handle attribute changes after changing attribute

-- File Changes --

    M dom.bs (4)

-- Patch Links --

https://github.com/whatwg/dom/pull/1176.patch
https://github.com/whatwg/dom/pull/1176.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1176
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/1176@github.com>

Received on Saturday, 25 March 2023 18:09:20 UTC