Files
tubestation/servo/components/script/dom/webidls/HTMLHyperlinkElementUtils.webidl
Jaydeep 1bd60c6a3e servo: Merge #9887 - Implement HTMLHyperlinkElementUtils for HTMLAnchorElement (from schuster:HTMLHyperlinkElementUtils); r=jdm
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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9a8d62286c6556fca7471f2db37f896174bc4d9e
2016-03-25 11:06:35 +05:00

27 lines
1.1 KiB
Plaintext

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// https://html.spec.whatwg.org/multipage/#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;
// Adding a separate stringifier method until
// https://github.com/servo/servo/issues/7590 adds attribute stringifier
// support.
stringifier;
};