[whatwg/dom] Define TreeNode mixin and add .closest() to more nodes (#883)

Fixes #161.

I will submit a WebKit patch as soon as WPT PR is merged and synced.
Given this change adds a nice feature without growing API surface area, I have high hopes of it being landed.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Define TreeNode mixin and add .closest() to more nodes

-- File Changes --

    M dom.bs (78)

-- Patch Links --

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

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

Received on Friday, 31 July 2020 13:49:50 UTC