From 9382d53a43f5b98ced3373cafea338d091a85a14 Mon Sep 17 00:00:00 2001 From: "TAMURA, Kent" Date: Thu, 21 Feb 2019 19:06:44 +0900 Subject: [PATCH] html,custom-elements: Add tests for HTMLElement.attachInternals() (#15123) Specification PR: https://github.com/whatwg/html/pull/4324 --- .../HTMLElement-attachInternals.html | 82 +++++++++++++++++++ interfaces/html.idl | 7 ++ 2 files changed, 89 insertions(+) create mode 100644 custom-elements/HTMLElement-attachInternals.html diff --git a/custom-elements/HTMLElement-attachInternals.html b/custom-elements/HTMLElement-attachInternals.html new file mode 100644 index 000000000000000..e537983059054eb --- /dev/null +++ b/custom-elements/HTMLElement-attachInternals.html @@ -0,0 +1,82 @@ + + + + + +
+ + diff --git a/interfaces/html.idl b/interfaces/html.idl index f530f3559b68af5..641213d1bb6fd47 100644 --- a/interfaces/html.idl +++ b/interfaces/html.idl @@ -114,6 +114,8 @@ interface HTMLElement : Element { [CEReactions] attribute DOMString autocapitalize; [CEReactions] attribute [TreatNullAs=EmptyString] DOMString innerText; + + ElementInternals attachInternals(); }; HTMLElement includes GlobalEventHandlers; @@ -1410,6 +1412,11 @@ dictionary ElementDefinitionOptions { DOMString extends; }; +[Exposed=Window] +interface ElementInternals { + +}; + dictionary FocusOptions { boolean preventScroll = false; };