mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
Auto merge of #9887 - schuster:HTMLHyperlinkElementUtils, r=jdm
Implement HTMLHyperlinkElementUtils for HTMLAnchorElement Fixes #7857 Origin is omitted since it's still not available in rust-url, but since the previous PR also left it out, I'm assuming that's okay. Please let me know if there are any style issues. There might be more concise ways to do the pattern matching that I don't know about, I guessed at the indentation style in one or two places. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9887) <!-- Reviewable:end -->
This commit is contained in:
commit
9a8d62286c
26 changed files with 369 additions and 1606 deletions
|
@ -26,7 +26,7 @@ interface HTMLAnchorElement : HTMLElement {
|
|||
|
||||
// also has obsolete members
|
||||
};
|
||||
//HTMLAnchorElement implements HTMLHyperlinkElementUtils;
|
||||
HTMLAnchorElement implements HTMLHyperlinkElementUtils;
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#HTMLAnchorElement-partial
|
||||
partial interface HTMLAnchorElement {
|
||||
|
|
|
@ -4,17 +4,23 @@
|
|||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#htmlhyperlinkelementutils
|
||||
//[NoInterfaceObject/*, Exposed=Window*/]
|
||||
//interface HTMLHyperlinkElementUtils {
|
||||
[NoInterfaceObject/*, Exposed=Window*/]
|
||||
interface HTMLHyperlinkElementUtils {
|
||||
// stringifier attribute USVString href;
|
||||
attribute USVString href;
|
||||
// attribute USVString origin;
|
||||
// attribute USVString protocol;
|
||||
// attribute USVString username;
|
||||
// attribute USVString password;
|
||||
// attribute USVString host;
|
||||
// attribute USVString hostname;
|
||||
// attribute USVString port;
|
||||
// attribute USVString pathname;
|
||||
// attribute USVString search;
|
||||
// attribute USVString hash;
|
||||
//};
|
||||
attribute USVString protocol;
|
||||
attribute USVString username;
|
||||
attribute USVString password;
|
||||
attribute USVString host;
|
||||
attribute USVString hostname;
|
||||
attribute USVString port;
|
||||
attribute USVString pathname;
|
||||
attribute USVString search;
|
||||
attribute USVString hash;
|
||||
|
||||
// Adding a separate stringifier method until
|
||||
// https://github.com/servo/servo/issues/7590 adds attribute stringifier
|
||||
// support.
|
||||
stringifier;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue