Skip to content

Commit 52fe8d1

Browse files
committed
Add HTMLTemplateDocument
1 parent 8d5fbfd commit 52fe8d1

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

baselines/dom.generated.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12610,6 +12610,15 @@ interface ProgressEventInit extends EventInit {
1261012610
total?: number;
1261112611
}
1261212612

12613+
interface HTMLTemplateElement extends HTMLElement {
12614+
content: DocumentFragment;
12615+
}
12616+
12617+
declare var HTMLTemplateElement: {
12618+
prototype: HTMLTemplateElement;
12619+
new(): HTMLTemplateElement;
12620+
}
12621+
1261312622
declare type EventListenerOrEventListenerObject = EventListener | EventListenerObject;
1261412623

1261512624
interface ErrorEventHandler {

inputfiles/addedTypes.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,5 +230,20 @@
230230
"interface": "Document",
231231
"name": "currentScript",
232232
"type": "HTMLScriptElement"
233-
}
233+
},
234+
{
235+
"kind": "interface",
236+
"name": "HTMLTemplateElement",
237+
"flavor": "Web",
238+
"extends": "HTMLElement",
239+
"constructorSignatures": [
240+
"new(): HTMLTemplateElement"
241+
],
242+
"properties": [
243+
{
244+
"name": "content",
245+
"type": "DocumentFragment"
246+
}
247+
]
248+
}
234249
]

0 commit comments

Comments
 (0)