Restore HTMLDocument constructable value in DOM (#45554)

Don't touch anything else in the DOM.
This commit is contained in:
Nathan Shively-Sanders
2021-08-23 15:56:11 -07:00
committed by GitHub
parent 8362a0f929
commit b8ace9d312
3 changed files with 11 additions and 7 deletions

View File

@@ -6380,6 +6380,12 @@ interface HTMLDocument extends Document {
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
}
/** @deprecated */
declare var HTMLDocument: {
prototype: HTMLDocument;
new(): HTMLDocument;
};
interface HTMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
}
@@ -17181,7 +17187,6 @@ interface WindowEventMap extends GlobalEventHandlersEventMap, WindowEventHandler
/** A window containing a DOM document; the document property points to the DOM document loaded in that window. */
interface Window extends EventTarget, AnimationFrameProvider, GlobalEventHandlers, WindowEventHandlers, WindowLocalStorage, WindowOrWorkerGlobalScope, WindowSessionStorage {
HTMLDocument: Document;
/** @deprecated This is a legacy alias of `navigator`. */
readonly clientInformation: Navigator;
/**
@@ -18246,7 +18251,6 @@ declare var Image: {
declare var Option: {
new(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean): HTMLOptionElement;
};
declare var HTMLDocument: Document;
/** @deprecated This is a legacy alias of `navigator`. */
declare var clientInformation: Navigator;
/**