-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add feature for moveBefore()
DOM methods (and group some DOM features)
#2660
base: main
Are you sure you want to change the base?
Conversation
@@ -1,6 +1,7 @@ | |||
name: getHTML() | |||
description: The `getHTML()` method of `Element` and `ShadowRoot` objects serializes an element's DOM to an HTML string. | |||
spec: https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#html-serialization-methods | |||
group: dom |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getHTML()
is specific to HTML:
group: dom | |
group: html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you elaborate on this one a bit? I thought of this as "fancy innerHTML
," which is part of the basic dom
feature. It seemed weird to me that they would be in separate groups.
Co-authored-by: Patrick Brosset <[email protected]>
Co-authored-by: Philip Jägenstedt <[email protected]>
Co-authored-by: Patrick Brosset <[email protected]>
Surprising, but correct.
It's a more generic operation. Co-authored-by: Philip Jägenstedt <[email protected]>
This adds a feature for the state-preserving method for moving DOM subtrees,
moveBefore()
. While I was here, I created a group for DOM features that operate on the DOM in general. That is, they represent or modify the document tree (rather than represent specific elements or provide other APIs).