mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17:35 +00:00
LibWeb: Extract the HTMLHyperlinkElementUtils IDL mixin
Also added FIXMEs for some missing methods while I was at it.
This commit is contained in:
parent
abd359a921
commit
8d2d315858
3 changed files with 37 additions and 28 deletions
|
@ -1,31 +1,24 @@
|
|||
#import <HTML/HTMLElement.idl>
|
||||
#import <HTML/HTMLHyperlinkElementUtils.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/text-level-semantics.html#htmlanchorelement
|
||||
interface HTMLAnchorElement : HTMLElement {
|
||||
// FIXME: [HTMLConstructor] constructor();
|
||||
|
||||
[Reflect] attribute DOMString target;
|
||||
[Reflect] attribute DOMString download;
|
||||
[Reflect] attribute DOMString ping;
|
||||
[Reflect] attribute DOMString rel;
|
||||
// FIXME: [SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
|
||||
[Reflect] attribute DOMString hreflang;
|
||||
[Reflect] attribute DOMString type;
|
||||
|
||||
// Obsolete
|
||||
[Reflect] attribute DOMString coords;
|
||||
[Reflect] attribute DOMString charset;
|
||||
[Reflect] attribute DOMString name;
|
||||
[Reflect] attribute DOMString rev;
|
||||
[Reflect] attribute DOMString shape;
|
||||
|
||||
// FIXME: This should come from a HTMLHyperlinkElementUtils mixin
|
||||
[CEReactions] stringifier attribute USVString href;
|
||||
readonly attribute USVString origin;
|
||||
[CEReactions] attribute USVString protocol;
|
||||
[CEReactions] attribute USVString username;
|
||||
[CEReactions] attribute USVString password;
|
||||
[CEReactions] attribute USVString host;
|
||||
[CEReactions] attribute USVString hostname;
|
||||
[CEReactions] attribute USVString port;
|
||||
[CEReactions] attribute USVString pathname;
|
||||
[CEReactions] attribute USVString search;
|
||||
[CEReactions] attribute USVString hash;
|
||||
|
||||
};
|
||||
|
||||
HTMLAnchorElement includes HTMLHyperlinkElementUtils;
|
||||
|
|
|
@ -1,20 +1,22 @@
|
|||
#import <HTML/HTMLElement.idl>
|
||||
#import <HTML/HTMLHyperlinkElementUtils.idl>
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/image-maps.html#htmlareaelement
|
||||
interface HTMLAreaElement : HTMLElement {
|
||||
// FIXME: [HTMLConstructor] constructor();
|
||||
|
||||
// FIXME: [CEReactions] attribute DOMString alt;
|
||||
// FIXME: [CEReactions] attribute DOMString coords;
|
||||
// FIXME: [CEReactions] attribute DOMString shape;
|
||||
// FIXME: [CEReactions] attribute DOMString target;
|
||||
// FIXME: [CEReactions] attribute DOMString download;
|
||||
// FIXME: [CEReactions] attribute USVString ping;
|
||||
// FIXME: [CEReactions] attribute DOMString rel;
|
||||
// FIXME: [SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
|
||||
// FIXME: [CEReactions] attribute DOMString referrerPolicy;
|
||||
|
||||
// Obsolete
|
||||
[Reflect=nohref] attribute boolean noHref;
|
||||
|
||||
// FIXME: This should come from a HTMLHyperlinkElementUtils mixin
|
||||
[CEReactions] stringifier attribute USVString href;
|
||||
readonly attribute USVString origin;
|
||||
[CEReactions] attribute USVString protocol;
|
||||
[CEReactions] attribute USVString username;
|
||||
[CEReactions] attribute USVString password;
|
||||
[CEReactions] attribute USVString host;
|
||||
[CEReactions] attribute USVString hostname;
|
||||
[CEReactions] attribute USVString port;
|
||||
[CEReactions] attribute USVString pathname;
|
||||
[CEReactions] attribute USVString search;
|
||||
[CEReactions] attribute USVString hash;
|
||||
|
||||
};
|
||||
|
||||
HTMLAreaElement includes HTMLHyperlinkElementUtils;
|
||||
|
|
14
Userland/Libraries/LibWeb/HTML/HTMLHyperlinkElementUtils.idl
Normal file
14
Userland/Libraries/LibWeb/HTML/HTMLHyperlinkElementUtils.idl
Normal file
|
@ -0,0 +1,14 @@
|
|||
// https://html.spec.whatwg.org/multipage/links.html#htmlhyperlinkelementutils
|
||||
interface mixin HTMLHyperlinkElementUtils {
|
||||
[CEReactions] stringifier attribute USVString href;
|
||||
readonly attribute USVString origin;
|
||||
[CEReactions] attribute USVString protocol;
|
||||
[CEReactions] attribute USVString username;
|
||||
[CEReactions] attribute USVString password;
|
||||
[CEReactions] attribute USVString host;
|
||||
[CEReactions] attribute USVString hostname;
|
||||
[CEReactions] attribute USVString port;
|
||||
[CEReactions] attribute USVString pathname;
|
||||
[CEReactions] attribute USVString search;
|
||||
[CEReactions] attribute USVString hash;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue