-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 AbstractRange
and StaticRange
interfaces
#4221
base: main
Are you sure you want to change the base?
Conversation
c73ef02
to
2298ee6
Compare
[Throws] | ||
readonly attribute Node startContainer; | ||
[Throws] | ||
readonly attribute unsigned long startOffset; | ||
[Throws] | ||
readonly attribute Node endContainer; | ||
[Throws] | ||
readonly attribute unsigned long endOffset; |
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.
I can't find anything in the specification saying that this could throw.
I assume you simply copied this from the Firefox webidl directory, but we tend to follow the specification as close as possible.
Let me know if you have different information.
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.
EOL missing.
@@ -10,10 +10,10 @@ | |||
* | |||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C | |||
* liability, trademark and document use rules apply. | |||
*/ | |||
*/ |
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.
*/ | |
*/ |
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.
EOL missing.
|
||
[Exposed=Window] | ||
interface StaticRange : AbstractRange { | ||
constructor(StaticRangeInit init); |
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.
constructor(StaticRangeInit init); | |
[Throws] constructor(StaticRangeInit init); |
Constructors are marked as throwing by default, but just in case we want to change this in the future.
* Added bindings for `StaticRange`. | ||
[#4221](https://github.com/rustwasm/wasm-bindgen/pull/4221) | ||
|
||
* Added bindings for `AbstractRange`. | ||
[#4221](https://github.com/rustwasm/wasm-bindgen/pull/4221) |
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.
Lets combine those.
This pull request adds support for the
AbstractRange
andStaticRange
interfaces to wasm-bindgen, enabling Rust developers to interact with these DOM range objects for improved web API compatibility.