Skip to content

Commit fcf40f1

Browse files
committed
adds edits/links/embedded content types
1 parent f0b912c commit fcf40f1

9 files changed

+124
-30
lines changed

baselines/dom.generated.d.ts

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -6605,12 +6605,13 @@ interface HTMLHyperlinkElementUtils {
66056605
host: string;
66066606
hostname: string;
66076607
href: string;
6608-
origin: string;
6608+
readonly origin: string;
6609+
password: string;
66096610
pathname: string;
66106611
port: string;
66116612
protocol: string;
66126613
search: string;
6613-
toString(): string;
6614+
username: string;
66146615
}
66156616

66166617
interface HTMLIFrameElementEventMap extends HTMLElementEventMap {
@@ -6732,19 +6733,6 @@ interface HTMLImageElement extends HTMLElement {
67326733
longDesc: string;
67336734
/** @deprecated */
67346735
lowsrc: string;
6735-
/**
6736-
* Gets or sets whether the DLNA PlayTo device is available.
6737-
*/
6738-
msPlayToDisabled: boolean;
6739-
msPlayToPreferredSourceUri: string;
6740-
/**
6741-
* Gets or sets the primary DLNA PlayTo device.
6742-
*/
6743-
msPlayToPrimary: boolean;
6744-
/**
6745-
* Gets the source associated with the media element for use by the PlayToManager.
6746-
*/
6747-
readonly msPlayToSource: any;
67486736
/**
67496737
* Sets or retrieves the name of the object.
67506738
*/
@@ -6758,6 +6746,7 @@ interface HTMLImageElement extends HTMLElement {
67586746
* The original width of the image resource before sizing.
67596747
*/
67606748
readonly naturalWidth: number;
6749+
referrerPolicy: string;
67616750
sizes: string;
67626751
/**
67636752
* The address or URL of the a media resource that is to be considered.
@@ -6777,9 +6766,7 @@ interface HTMLImageElement extends HTMLElement {
67776766
* Sets or retrieves the width of the object.
67786767
*/
67796768
width: number;
6780-
readonly x: number;
6781-
readonly y: number;
6782-
msGetAsCastingSource(): any;
6769+
decode(): Promise<void>;
67836770
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
67846771
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
67856772
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLImageElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
@@ -8014,8 +8001,6 @@ interface HTMLSourceElement extends HTMLElement {
80148001
* Gets or sets the intended media type of the media source.
80158002
*/
80168003
media: string;
8017-
/** @deprecated */
8018-
msKeySystem: string;
80198004
sizes: string;
80208005
/**
80218006
* The address or URL of the a media resource that is to be considered.

inputfiles/addedTypes.json

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,12 @@
180180
"override-type": "\"async\" | \"sync\" | \"auto\""
181181
}
182182
}
183-
}
183+
},
184+
"element": [
185+
{
186+
"name": "img"
187+
}
188+
]
184189
},
185190
"BroadcastChannelEventMap": {
186191
"name": "BroadcastChannelEventMap",
@@ -2144,6 +2149,30 @@
21442149
}
21452150
]
21462151
},
2152+
"HTMLModElement": {
2153+
"element": [
2154+
{
2155+
"name": "del"
2156+
},
2157+
{
2158+
"name": "ins"
2159+
}
2160+
]
2161+
},
2162+
"HTMLPictureElement": {
2163+
"element": [
2164+
{
2165+
"name": "picture"
2166+
}
2167+
]
2168+
},
2169+
"HTMLSourceElement": {
2170+
"element": [
2171+
{
2172+
"name": "source"
2173+
}
2174+
]
2175+
},
21472176
"HTMLSpanElement": {
21482177
"element": [
21492178
{

inputfiles/comments.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -430,15 +430,6 @@
430430
},
431431
"complete": {
432432
"comment": "/**\r\n * Retrieves whether the object is fully loaded.\r\n */"
433-
},
434-
"msPlayToPrimary": {
435-
"comment": "/**\r\n * Gets or sets the primary DLNA PlayTo device.\r\n */"
436-
},
437-
"msPlayToDisabled": {
438-
"comment": "/**\r\n * Gets or sets whether the DLNA PlayTo device is available.\r\n */"
439-
},
440-
"msPlayToSource": {
441-
"comment": "/**\r\n * Gets the source associated with the media element for use by the PlayToManager.\r\n */"
442433
}
443434
}
444435
}

inputfiles/idl/HTML - Edits.widl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[Exposed=Window,
2+
HTMLConstructor]
3+
interface HTMLModElement : HTMLElement {
4+
[CEReactions] attribute USVString cite;
5+
[CEReactions] attribute DOMString dateTime;
6+
};
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"img-height": "These attributes return the actual rendered dimensions of the\nimage, or zero if the dimensions are not known.\nThey can be set, to change the corresponding content\nattributes.",
3+
"img-naturalheight": "These attributes return the intrinsic dimensions of the image,\nor zero if the dimensions are not known.",
4+
"img-complete": "Returns true if the image has been completely downloaded or if\nno image is specified; otherwise, returns false.",
5+
"img-currentsrc": "Returns the image's absolute URL.",
6+
"img-decoding": "Returns the image decoding hint set for this image.",
7+
"img-decode": "This method causes the user agent to decode the\nimage in parallel, returning a promise that fulfills when decoding is complete.\nThe promise will be rejected with an \"EncodingError\"\nDOMException if the image cannot be decoded.",
8+
"image": "Returns a new img element, with the width and height attributes set to the values\npassed in the relevant arguments, if applicable."
9+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[Exposed=Window,
2+
HTMLConstructor]
3+
interface HTMLPictureElement : HTMLElement {};
4+
5+
[Exposed=Window,
6+
HTMLConstructor]
7+
interface HTMLSourceElement : HTMLElement {
8+
[CEReactions] attribute USVString src;
9+
[CEReactions] attribute DOMString type;
10+
[CEReactions] attribute USVString srcset;
11+
[CEReactions] attribute DOMString sizes;
12+
[CEReactions] attribute DOMString media;
13+
};
14+
15+
[Exposed=Window,
16+
HTMLConstructor,
17+
NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
18+
interface HTMLImageElement : HTMLElement {
19+
[CEReactions] attribute DOMString alt;
20+
[CEReactions] attribute USVString src;
21+
[CEReactions] attribute USVString srcset;
22+
[CEReactions] attribute DOMString sizes;
23+
[CEReactions] attribute DOMString? crossOrigin;
24+
[CEReactions] attribute DOMString useMap;
25+
[CEReactions] attribute boolean isMap;
26+
[CEReactions] attribute unsigned long width;
27+
[CEReactions] attribute unsigned long height;
28+
readonly attribute unsigned long naturalWidth;
29+
readonly attribute unsigned long naturalHeight;
30+
readonly attribute boolean complete;
31+
readonly attribute USVString currentSrc;
32+
[CEReactions] attribute DOMString referrerPolicy;
33+
[CEReactions] attribute DOMString decoding;
34+
35+
Promise<void> decode();
36+
};
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"hyperlink-href": "Returns the hyperlink's URL.\nCan be set, to change the URL.",
3+
"hyperlink-origin": "Returns the hyperlink's URL's origin.",
4+
"hyperlink-protocol": "Returns the hyperlink's URL's scheme.\nCan be set, to change the URL's scheme.",
5+
"hyperlink-username": "Returns the hyperlink's URL's username.\nCan be set, to change the URL's username.",
6+
"hyperlink-password": "Returns the hyperlink's URL's password.\nCan be set, to change the URL's password.",
7+
"hyperlink-host": "Returns the hyperlink's URL's host and port (if different from the default port for the\nscheme).\nCan be set, to change the URL's host and port.",
8+
"hyperlink-hostname": "Returns the hyperlink's URL's host.\nCan be set, to change the URL's host.",
9+
"hyperlink-port": "Returns the hyperlink's URL's port.\nCan be set, to change the URL's port.",
10+
"hyperlink-pathname": "Returns the hyperlink's URL's path.\nCan be set, to change the URL's path.",
11+
"hyperlink-search": "Returns the hyperlink's URL's query (includes leading \"?\" if\nnon-empty).\nCan be set, to change the URL's query (ignores leading \"?\").",
12+
"hyperlink-hash": "Returns the hyperlink's URL's fragment (includes leading \"#\" if\nnon-empty).\nCan be set, to change the URL's fragment (ignores leading \"#\")."
13+
}

inputfiles/idl/HTML - Links.widl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
interface mixin HTMLHyperlinkElementUtils {
2+
[CEReactions] stringifier attribute USVString href;
3+
readonly attribute USVString origin;
4+
[CEReactions] attribute USVString protocol;
5+
[CEReactions] attribute USVString username;
6+
[CEReactions] attribute USVString password;
7+
[CEReactions] attribute USVString host;
8+
[CEReactions] attribute USVString hostname;
9+
[CEReactions] attribute USVString port;
10+
[CEReactions] attribute USVString pathname;
11+
[CEReactions] attribute USVString search;
12+
[CEReactions] attribute USVString hash;
13+
};

inputfiles/idlSources.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@
3535
"url": "https://html.spec.whatwg.org/multipage/common-dom-interfaces.html",
3636
"title": "HTML - Common DOM interfaces"
3737
},
38+
{
39+
"url": "https://html.spec.whatwg.org/multipage/edits.html",
40+
"title": "HTML - Edits"
41+
},
42+
{
43+
"url": "https://html.spec.whatwg.org/multipage/embedded-content.html",
44+
"title": "HTML - Embedded content"
45+
},
3846
{
3947
"url": "https://html.spec.whatwg.org/multipage/form-control-infrastructure.html",
4048
"title": "HTML - Form control infrastructure"
@@ -43,6 +51,10 @@
4351
"url": "https://html.spec.whatwg.org/multipage/form-elements.html",
4452
"title": "HTML - Form elements"
4553
},
54+
{
55+
"url": "https://html.spec.whatwg.org/multipage/links.html",
56+
"title": "HTML - Links"
57+
},
4658
{
4759
"url": "https://html.spec.whatwg.org/multipage/obsolete.html",
4860
"title": "HTML - Obsolete features",

0 commit comments

Comments
 (0)