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

Adding the Range as a feature #1380

Closed
wants to merge 7 commits into from

Conversation

tropicadri
Copy link
Collaborator

No description provided.

@github-actions github-actions bot added the feature definition Creating or defining new features or groups of features. label Jul 11, 2024
features/xml-serializer.yml Outdated Show resolved Hide resolved
features/xml-serializer.yml Outdated Show resolved Hide resolved
@@ -0,0 +1,33 @@
name: Range
description: The Range interface represents a fragment of a document that can contain nodes and parts of text nodes.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Range is defined in https://dom.spec.whatwg.org/#interface-range, but on its own it doesn't really do much, it's mostly in support of https://w3c.github.io/selection-api/.

I we may need a DOM feature for most old parts of https://dom.spec.whatwg.org/ that other specs depend on. @ddbeck WDYT?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Until we're backed into a corner, I think we ought to put such interfaces with their most longstanding dependent features (e.g., unless someone has an older use-case, Range can go with the selection API—not sure what use Range would be alone).

That said, if there's no such feature or it has use alone—supposing I'm wrong about Range here—then I'd be OK with a foundational DOM feature. It might be quite boring, but make a lot of sense to stand in contrast with the Shadow DOM feature, with "Also known as light DOM" description text.

@foolip
Copy link
Collaborator

foolip commented Jul 12, 2024

@tropicadri I think we can land the XMLSerializer feature before we figure out what to do with Range. Can you separate the Range bits into a separate PR?

@tropicadri tropicadri changed the title Adding the Range and XMLSerializer DOM serializing features Adding the Range as a feature Jul 16, 2024
@@ -0,0 +1,33 @@
name: Range
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we haven't got an answer to whether this should standalone yet, but I also don't want to let this sit idle for forever, here's my idea for how to proceed with this:

Let's move this in to the draft folder, add the draft date, and add a comment that links to this PR's discussion. That way, when we do get an answer to whether or not we need some "foundational DOM" feature (or features), then we have at least this part of the work documented somewhere.

ddbeck added a commit to ddbeck/web-features that referenced this pull request Nov 19, 2024
@ddbeck ddbeck mentioned this pull request Nov 19, 2024
@jamesnw jamesnw closed this in 5c55e4e Nov 19, 2024
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants