Skip to content

Commit 5fa945f

Browse files
authored
Update DOM types (#840)
1 parent 4e78816 commit 5fa945f

File tree

3 files changed

+8
-14
lines changed

3 files changed

+8
-14
lines changed

baselines/dom.generated.d.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4543,10 +4543,6 @@ interface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShad
45434543
*/
45444544
onreadystatechange: ((this: Document, ev: Event) => any) | null;
45454545
onvisibilitychange: ((this: Document, ev: Event) => any) | null;
4546-
/**
4547-
* Returns document's origin.
4548-
*/
4549-
readonly origin: string;
45504546
readonly ownerDocument: null;
45514547
/**
45524548
* Return an HTMLCollection of the embed elements in the Document.
@@ -5079,7 +5075,7 @@ interface ElementEventMap {
50795075
}
50805076

50815077
/** Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. */
5082-
interface Element extends Node, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slotable {
5078+
interface Element extends Node, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {
50835079
readonly assignedSlot: HTMLSlotElement | null;
50845080
readonly attributes: NamedNodeMap;
50855081
/**
@@ -14976,7 +14972,7 @@ declare var SharedWorker: {
1497614972
new(scriptURL: string, options?: string | WorkerOptions): SharedWorker;
1497714973
};
1497814974

14979-
interface Slotable {
14975+
interface Slottable {
1498014976
readonly assignedSlot: HTMLSlotElement | null;
1498114977
}
1498214978

@@ -15418,7 +15414,7 @@ declare var SyncManager: {
1541815414
};
1541915415

1542015416
/** The textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children. */
15421-
interface Text extends CharacterData, Slotable {
15417+
interface Text extends CharacterData, Slottable {
1542215418
readonly assignedSlot: HTMLSlotElement | null;
1542315419
/**
1542415420
* Returns the combined data of all direct Text node siblings.

inputfiles/idl/DOM.commentmap.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
"document-implementation": "Returns document's DOMImplementation object.",
8080
"document-url": "Returns document's URL.",
8181
"document-documenturi": "Returns document's URL.",
82-
"document-origin": "Returns document's origin.",
8382
"document-compatmode": "Returns the string \"BackCompat\" if document's mode is \"quirks\", and \"CSS1Compat\" otherwise.",
8483
"document-characterset": "Returns document's encoding.",
8584
"document-contenttype": "Returns document's content type.",

inputfiles/idl/DOM.widl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ interface CustomEvent : Event {
4747

4848
readonly attribute any detail;
4949

50-
void initCustomEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false, optional any detail = null);
50+
void initCustomEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false, optional any detail = null); // historical
5151
};
5252

5353
dictionary CustomEventInit : EventInit {
@@ -136,11 +136,11 @@ DocumentType includes ChildNode;
136136
Element includes ChildNode;
137137
CharacterData includes ChildNode;
138138

139-
interface mixin Slotable {
139+
interface mixin Slottable {
140140
readonly attribute HTMLSlotElement? assignedSlot;
141141
};
142-
Element includes Slotable;
143-
Text includes Slotable;
142+
Element includes Slottable;
143+
Text includes Slottable;
144144

145145
[Exposed=Window]
146146
interface NodeList {
@@ -259,7 +259,6 @@ interface Document : Node {
259259
[SameObject] readonly attribute DOMImplementation implementation;
260260
readonly attribute USVString URL;
261261
readonly attribute USVString documentURI;
262-
readonly attribute USVString origin;
263262
readonly attribute DOMString compatMode;
264263
readonly attribute DOMString characterSet;
265264
readonly attribute DOMString charset; // historical alias of .characterSet
@@ -286,7 +285,7 @@ interface Document : Node {
286285
[NewObject] Attr createAttribute(DOMString localName);
287286
[NewObject] Attr createAttributeNS(DOMString? namespace, DOMString qualifiedName);
288287

289-
[NewObject] Event createEvent(DOMString interface);
288+
[NewObject] Event createEvent(DOMString interface); // historical
290289

291290
[NewObject] Range createRange();
292291

0 commit comments

Comments
 (0)