-
Notifications
You must be signed in to change notification settings - Fork 200
Adding the Range as a feature #1380
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
Changes from all commits
6ebefb5
10d0db5
eccc228
b056398
294fd44
22edd59
4386e46
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I we may need a DOM feature for most old parts of https://dom.spec.whatwg.org/ that other specs depend on. @ddbeck WDYT?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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, That said, if there's no such feature or it has use alone—supposing I'm wrong about |
||
| spec: https://w3c.github.io/DOM-Parsing/ | ||
| compat_features: | ||
| - api.Range | ||
| - api.Range.createContextualFragment | ||
| - api.Range.Range | ||
| - api.Range.cloneContents | ||
| - api.Range.cloneRange | ||
| - api.Range.collapse | ||
| - api.Range.collapsed | ||
| - api.Range.commonAncestorContainer | ||
| - api.Range.compareBoundaryPoints | ||
| - api.Range.comparePoint | ||
| - api.Range.deleteContents | ||
| - api.Range.endContainer | ||
| - api.Range.endOffset | ||
| - api.Range.extractContents | ||
| - api.Range.insertNode | ||
| - api.Range.intersectsNode | ||
| - api.Range.isPointInRange | ||
| - api.Range.selectNode | ||
| - api.Range.selectNodeContents | ||
| - api.Range.setEnd | ||
| - api.Range.setEndAfter | ||
| - api.Range.setEndBefore | ||
| - api.Range.setStart | ||
| - api.Range.setStartAfter | ||
| - api.Range.setStartBefore | ||
| - api.Range.startContainer | ||
| - api.Range.startOffset | ||
| - api.Range.surroundContents | ||
| - api.Range.toString | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,104 @@ | ||
| # Generated from: range.yml | ||
| # Do not edit this file by hand. Edit the source file instead! | ||
|
|
||
| status: | ||
| baseline: high | ||
| baseline_low_date: 2018-04-30 | ||
| baseline_high_date: 2020-10-30 | ||
| support: | ||
| chrome: "29" | ||
| chrome_android: "29" | ||
| edge: "17" | ||
| firefox: "24" | ||
| firefox_android: "24" | ||
| safari: "8" | ||
| safari_ios: "8" | ||
| compat_features: | ||
| # baseline: high | ||
| # baseline_low_date: 2015-07-29 | ||
| # baseline_high_date: 2018-01-29 | ||
| # support: | ||
| # chrome: "1" | ||
| # chrome_android: "18" | ||
| # edge: "12" | ||
| # firefox: "1" | ||
| # firefox_android: "4" | ||
| # safari: "1" | ||
| # safari_ios: "1" | ||
| - api.Range | ||
| - api.Range.cloneContents | ||
| - api.Range.cloneRange | ||
| - api.Range.collapse | ||
| - api.Range.collapsed | ||
| - api.Range.commonAncestorContainer | ||
| - api.Range.compareBoundaryPoints | ||
| - api.Range.createContextualFragment | ||
| - api.Range.deleteContents | ||
| - api.Range.endContainer | ||
| - api.Range.endOffset | ||
| - api.Range.extractContents | ||
| - api.Range.insertNode | ||
| - api.Range.selectNode | ||
| - api.Range.selectNodeContents | ||
| - api.Range.setEnd | ||
| - api.Range.setEndAfter | ||
| - api.Range.setEndBefore | ||
| - api.Range.setStart | ||
| - api.Range.setStartAfter | ||
| - api.Range.setStartBefore | ||
| - api.Range.startContainer | ||
| - api.Range.startOffset | ||
| - api.Range.surroundContents | ||
| - api.Range.toString | ||
|
|
||
| # baseline: high | ||
| # baseline_low_date: 2017-04-05 | ||
| # baseline_high_date: 2019-10-05 | ||
| # support: | ||
| # chrome: "1" | ||
| # chrome_android: "18" | ||
| # edge: "15" | ||
| # firefox: "1" | ||
| # firefox_android: "4" | ||
| # safari: "3" | ||
| # safari_ios: "1" | ||
| - api.Range.isPointInRange | ||
|
|
||
| # baseline: high | ||
| # baseline_low_date: 2017-04-05 | ||
| # baseline_high_date: 2019-10-05 | ||
| # support: | ||
| # chrome: "29" | ||
| # chrome_android: "29" | ||
| # edge: "15" | ||
| # firefox: "24" | ||
| # firefox_android: "24" | ||
| # safari: "8" | ||
| # safari_ios: "8" | ||
| - api.Range.Range | ||
|
|
||
| # baseline: high | ||
| # baseline_low_date: 2018-04-30 | ||
| # baseline_high_date: 2020-10-30 | ||
| # support: | ||
| # chrome: "1" | ||
| # chrome_android: "18" | ||
| # edge: "17" | ||
| # firefox: "1" | ||
| # firefox_android: "4" | ||
| # safari: "3" | ||
| # safari_ios: "1" | ||
| - api.Range.comparePoint | ||
|
|
||
| # baseline: high | ||
| # baseline_low_date: 2018-04-30 | ||
| # baseline_high_date: 2020-10-30 | ||
| # support: | ||
| # chrome: "1" | ||
| # chrome_android: "18" | ||
| # edge: "17" | ||
| # firefox: "17" | ||
| # firefox_android: "19" | ||
| # safari: "3" | ||
| # safari_ios: "1" | ||
| - api.Range.intersectsNode |
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.
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
draftfolder, 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.