Skip to content
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

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

ddbeck
Copy link
Collaborator

@ddbeck ddbeck commented Feb 17, 2025

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).

@github-actions github-actions bot added feature definition Creating or defining new features or groups of features. tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings labels Feb 17, 2025
@@ -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
Copy link
Collaborator

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:

Suggested change
group: dom
group: html

Copy link
Collaborator Author

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.

@ddbeck ddbeck requested a review from foolip February 20, 2025 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature definition Creating or defining new features or groups of features. tools and infrastructure Project internal tooling, such as linters, GitHub Actions, or repo settings
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants