From 5cfde87b6512ffec57605863746ae256d81aaf17 Mon Sep 17 00:00:00 2001 From: Bashamega Date: Sun, 28 Dec 2025 07:13:37 +0200 Subject: [PATCH 1/2] Replace ownerDocument with sheet in ProcessingInstruction --- baselines/dom.generated.d.ts | 7 ++++++- baselines/ts5.5/dom.generated.d.ts | 7 ++++++- baselines/ts5.6/dom.generated.d.ts | 7 ++++++- baselines/ts5.9/dom.generated.d.ts | 7 ++++++- inputfiles/addedTypes.jsonc | 12 ------------ inputfiles/patches/dom.kdl | 4 ++++ 6 files changed, 28 insertions(+), 16 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index a606f0991..fef482935 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -26920,7 +26920,12 @@ interface PopoverTargetAttributes { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction) */ interface ProcessingInstruction extends CharacterData, LinkStyle { - readonly ownerDocument: Document; + /** + * The read-only **`sheet`** property of the ProcessingInstruction interface contains the stylesheet associated to the ProcessingInstruction. + * + * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/sheet) + */ + readonly sheet: string; /** * The read-only **`target`** property of the ProcessingInstruction interface represent the application to which the ProcessingInstruction is targeted. * diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 6b1ce43d3..216348007 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -26896,7 +26896,12 @@ interface PopoverTargetAttributes { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction) */ interface ProcessingInstruction extends CharacterData, LinkStyle { - readonly ownerDocument: Document; + /** + * The read-only **`sheet`** property of the ProcessingInstruction interface contains the stylesheet associated to the ProcessingInstruction. + * + * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/sheet) + */ + readonly sheet: string; /** * The read-only **`target`** property of the ProcessingInstruction interface represent the application to which the ProcessingInstruction is targeted. * diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index e02807e16..76ae9d104 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -26917,7 +26917,12 @@ interface PopoverTargetAttributes { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction) */ interface ProcessingInstruction extends CharacterData, LinkStyle { - readonly ownerDocument: Document; + /** + * The read-only **`sheet`** property of the ProcessingInstruction interface contains the stylesheet associated to the ProcessingInstruction. + * + * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/sheet) + */ + readonly sheet: string; /** * The read-only **`target`** property of the ProcessingInstruction interface represent the application to which the ProcessingInstruction is targeted. * diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index ad1f341d2..bc245d360 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -26917,7 +26917,12 @@ interface PopoverTargetAttributes { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction) */ interface ProcessingInstruction extends CharacterData, LinkStyle { - readonly ownerDocument: Document; + /** + * The read-only **`sheet`** property of the ProcessingInstruction interface contains the stylesheet associated to the ProcessingInstruction. + * + * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/sheet) + */ + readonly sheet: string; /** * The read-only **`target`** property of the ProcessingInstruction interface represent the application to which the ProcessingInstruction is targeted. * diff --git a/inputfiles/addedTypes.jsonc b/inputfiles/addedTypes.jsonc index e377c9546..d26210390 100644 --- a/inputfiles/addedTypes.jsonc +++ b/inputfiles/addedTypes.jsonc @@ -448,18 +448,6 @@ } } } - }, - "ProcessingInstruction": { - "name": "ProcessingInstruction", - "properties": { - "property": { - "ownerDocument": { - "name": "ownerDocument", - "readonly": true, - "type": "Document" - } - } - } } } }, diff --git a/inputfiles/patches/dom.kdl b/inputfiles/patches/dom.kdl index 146a24389..2d53a6803 100644 --- a/inputfiles/patches/dom.kdl +++ b/inputfiles/patches/dom.kdl @@ -11,6 +11,10 @@ interface EventListenerObject noInterfaceObject=#true { } } +interface ProcessingInstruction { + property sheet readonly=#true type=DOMString mdnUrl="https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/sheet" +} + enum InsertPosition { beforebegin beforeend From 82d10785626d5698d9b4b232ff53281cf394a5f6 Mon Sep 17 00:00:00 2001 From: Bashamega Date: Sun, 28 Dec 2025 07:16:55 +0200 Subject: [PATCH 2/2] - --- baselines/dom.generated.d.ts | 6 ------ baselines/ts5.5/dom.generated.d.ts | 6 ------ baselines/ts5.6/dom.generated.d.ts | 6 ------ baselines/ts5.9/dom.generated.d.ts | 6 ------ inputfiles/patches/dom.kdl | 4 ---- 5 files changed, 28 deletions(-) diff --git a/baselines/dom.generated.d.ts b/baselines/dom.generated.d.ts index fef482935..6dda5c02e 100644 --- a/baselines/dom.generated.d.ts +++ b/baselines/dom.generated.d.ts @@ -26920,12 +26920,6 @@ interface PopoverTargetAttributes { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction) */ interface ProcessingInstruction extends CharacterData, LinkStyle { - /** - * The read-only **`sheet`** property of the ProcessingInstruction interface contains the stylesheet associated to the ProcessingInstruction. - * - * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/sheet) - */ - readonly sheet: string; /** * The read-only **`target`** property of the ProcessingInstruction interface represent the application to which the ProcessingInstruction is targeted. * diff --git a/baselines/ts5.5/dom.generated.d.ts b/baselines/ts5.5/dom.generated.d.ts index 216348007..c4f489707 100644 --- a/baselines/ts5.5/dom.generated.d.ts +++ b/baselines/ts5.5/dom.generated.d.ts @@ -26896,12 +26896,6 @@ interface PopoverTargetAttributes { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction) */ interface ProcessingInstruction extends CharacterData, LinkStyle { - /** - * The read-only **`sheet`** property of the ProcessingInstruction interface contains the stylesheet associated to the ProcessingInstruction. - * - * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/sheet) - */ - readonly sheet: string; /** * The read-only **`target`** property of the ProcessingInstruction interface represent the application to which the ProcessingInstruction is targeted. * diff --git a/baselines/ts5.6/dom.generated.d.ts b/baselines/ts5.6/dom.generated.d.ts index 76ae9d104..cdf8123a8 100644 --- a/baselines/ts5.6/dom.generated.d.ts +++ b/baselines/ts5.6/dom.generated.d.ts @@ -26917,12 +26917,6 @@ interface PopoverTargetAttributes { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction) */ interface ProcessingInstruction extends CharacterData, LinkStyle { - /** - * The read-only **`sheet`** property of the ProcessingInstruction interface contains the stylesheet associated to the ProcessingInstruction. - * - * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/sheet) - */ - readonly sheet: string; /** * The read-only **`target`** property of the ProcessingInstruction interface represent the application to which the ProcessingInstruction is targeted. * diff --git a/baselines/ts5.9/dom.generated.d.ts b/baselines/ts5.9/dom.generated.d.ts index bc245d360..e2f589ea4 100644 --- a/baselines/ts5.9/dom.generated.d.ts +++ b/baselines/ts5.9/dom.generated.d.ts @@ -26917,12 +26917,6 @@ interface PopoverTargetAttributes { * [MDN Reference](https://developer.mozilla.org/docs/Web/API/ProcessingInstruction) */ interface ProcessingInstruction extends CharacterData, LinkStyle { - /** - * The read-only **`sheet`** property of the ProcessingInstruction interface contains the stylesheet associated to the ProcessingInstruction. - * - * [MDN Reference](https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/sheet) - */ - readonly sheet: string; /** * The read-only **`target`** property of the ProcessingInstruction interface represent the application to which the ProcessingInstruction is targeted. * diff --git a/inputfiles/patches/dom.kdl b/inputfiles/patches/dom.kdl index 2d53a6803..146a24389 100644 --- a/inputfiles/patches/dom.kdl +++ b/inputfiles/patches/dom.kdl @@ -11,10 +11,6 @@ interface EventListenerObject noInterfaceObject=#true { } } -interface ProcessingInstruction { - property sheet readonly=#true type=DOMString mdnUrl="https://developer.mozilla.org/en-US/docs/Web/API/ProcessingInstruction/sheet" -} - enum InsertPosition { beforebegin beforeend