-
-
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
Anchor tag does not contain href property #1315
Comments
Thanks for the report! Looking into this I believe it's a duplicate of #893, and We may be able to fix this issue specifically though by manually removing the attribute perhaps and/or switching it to a |
This commit enables `[NoInterfaceObject]` annotated interfaces in `web-sys`. The `NoInterfaceObject` attribute means that there's not actually a JS class for the object, but all of its properties and such can still be accessed structually and invoked. This should help provide more bindings for some more common types on the web! Note that this builds on recent features to ensure that `dyn_into` and friends always fail for `NoInterfaceObject` objects because they don't actually have a class. Closes rustwasm#893 Closes rustwasm#1257 Closes rustwasm#1315
This commit enables `[NoInterfaceObject]` annotated interfaces in `web-sys`. The `NoInterfaceObject` attribute means that there's not actually a JS class for the object, but all of its properties and such can still be accessed structually and invoked. This should help provide more bindings for some more common types on the web! Note that this builds on recent features to ensure that `dyn_into` and friends always fail for `NoInterfaceObject` objects because they don't actually have a class. Closes rustwasm#893 Closes rustwasm#1257 Closes rustwasm#1315
Although web-sys now generates bindings for HTMLHyperlinkElementUtils, I still cannot figure out how to actually use them. Calling https://html.spec.whatwg.org/multipage/semantics.html#htmlhyperlinkelementutils (which Is this a problem with the .webidl file, or am I overlooking a different way of using |
This is probably a case where we can just edit the webidl directly, especially if it's officially included upstream! @marienz mind sending a PR? |
The
href
attribute is inherited by the<a>
tag viaHTMLHyperlinkElementUtils
as perhere. However for the life of me I can't find the
href
getter anywhere in the docs, nor any mention ofHTMLHyperlinkElementUtils
.href
is of course the most useful property of<a>
.The text was updated successfully, but these errors were encountered: