fune/dom/webidl/HTMLHyperlinkElementUtils.webidl
Emilio Cobos Álvarez e4ddf24147 Bug 1887719 - More consistently use UTF8String/nsCString for URLs. r=necko-reviewers,webidl,anti-tracking-reviewers,places-reviewers,jari,kershaw,janv,smaug,hsivonen
Sorry for the massive patch but I found it hard to split without
introducing a bunch of copies around...

This mostly makes necko and DOM agree on which strings to use, which
should result on less copies and conversions.

Differential Revision: https://phabricator.services.mozilla.com/D205601
2024-04-04 11:49:57 +00:00

36 lines
1.2 KiB
Text

/* -*- 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/.
*
* The origin of this IDL file is
* https://html.spec.whatwg.org/multipage/semantics.html#htmlhyperlinkelementutils
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
* Opera Software ASA. You are granted a license to use, reproduce
* and create derivative works of this document.
*/
interface mixin HTMLHyperlinkElementUtils {
[CEReactions, SetterThrows]
stringifier attribute UTF8String href;
readonly attribute UTF8String origin;
[CEReactions]
attribute UTF8String protocol;
[CEReactions]
attribute UTF8String username;
[CEReactions]
attribute UTF8String password;
[CEReactions]
attribute UTF8String host;
[CEReactions]
attribute UTF8String hostname;
[CEReactions]
attribute UTF8String port;
[CEReactions]
attribute UTF8String pathname;
[CEReactions]
attribute UTF8String search;
[CEReactions]
attribute UTF8String hash;
};