Skip to content

Specify baseNode/baseOffset/extentNode/extentOffset? #34

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

Open
foolip opened this issue Dec 10, 2014 · 10 comments
Open

Specify baseNode/baseOffset/extentNode/extentOffset? #34

foolip opened this issue Dec 10, 2014 · 10 comments

Comments

@foolip
Copy link
Member

foolip commented Dec 10, 2014

setBaseAndExtent as implemented in WebKit/Blink are related to these. Is the plan to drop the attributes but keep the function? Use counter data from Chrome:
https://www.chromestatus.com/metrics/feature/timeline/popularity/400
https://www.chromestatus.com/metrics/feature/timeline/popularity/401
https://www.chromestatus.com/metrics/feature/timeline/popularity/402
https://www.chromestatus.com/metrics/feature/timeline/popularity/403
https://www.chromestatus.com/metrics/feature/timeline/popularity/406

Based on this dropping the attribute looks doable, but is WebKit going to?

@LoonyBean
Copy link

Should I file this as a non-standard API bug still?

@rniwa
Copy link
Contributor

rniwa commented Feb 15, 2017

I don't understand what you mean by "non-standard API bug". This is an issue tracker for the selection API. By definition, discussions here will be about standards API.

@LoonyBean
Copy link

So you are saying baseNode/baseOffset/extentNode/extentOffset are all getting standardized?

Great!
Thanks!

@rniwa
Copy link
Contributor

rniwa commented Feb 15, 2017

That is precisely what's being discussed now. To decide whether baseNode/baseOffset/extentNode/extentOffset must be standardized or not.

@foolip
Copy link
Member Author

foolip commented Feb 16, 2017

@LoonyBean, did you file a Chromium bug to "standardize or remove" these? If so, link to this issue from here, and see if anyone comes along :)

@LoonyBean
Copy link

LoonyBean commented Feb 16, 2017 via email

aarongable pushed a commit to chromium/chromium that referenced this issue Mar 19, 2018
…}{Node,Offset}

This patch makes |Selection#{base,extent}{Node,Offset}| as aliases of
|Selection#{anchor,focus}{Node,Offset}| instead of getting position from
|VisibleSelection| which we don't want to expose to JavaScript.

Note: Selection#{base,extent}{Node,Offset} are not standard API and there
are some discussion for standardizing them[1].

[1] w3c/selection-api#34
Specify baseNode/baseOffset/extentNode/extentOffset?

Bug: 701501
Change-Id: I34fcdb4e80d5cef49bc1e0bdaea3cdec5c8b3758
Reviewed-on: https://chromium-review.googlesource.com/965663
Reviewed-by: Yoichi Osato <yoichio@chromium.org>
Reviewed-by: Xiaocheng Hu <xiaochengh@chromium.org>
Commit-Queue: Yoshifumi Inoue <yosin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#543982}
@jdragonbae
Copy link

I wonder how it's going.
Should we need more discussions?

Thanks :)

@foolip
Copy link
Member Author

foolip commented Oct 15, 2018

The current state is that these 4 attributes are in Chrome, Edge and Firefox, but not in Safari. Given that, putting them in the spec certainly seems like the least risky option. However, I'm not sure if there are important differences in behavior that would have to be sorted out.

@rniwa
Copy link
Contributor

rniwa commented Oct 15, 2018

Huh? These 4 attributes are definitely in Safari since it's a WebKit extension. Did you mean Edge or Firefox instead?

@foolip
Copy link
Member Author

foolip commented Oct 15, 2018

Yes, I mean they're in Chrome, Edge and Safari, but not Firefox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants