From 9c32ccd4198311c0f474959cf8a569bd4a44b561 Mon Sep 17 00:00:00 2001 From: Jenna Himawan Date: Sun, 23 Oct 2022 10:33:15 -0700 Subject: [PATCH] Update the demo to use non-deprecated APIs. 1) Replace `document.registerElement` with `customElements.define`. 2) Replace `createShadowRoot` with `attachShadow`. 3) Get rid of `document.writeln`, which is unsupported and unneeded. Up-to-date as of Oct 23, 2022. --- index.html | 5 - xknob.js | 1138 ++++++++++++++++++++++++++-------------------------- 2 files changed, 570 insertions(+), 573 deletions(-) diff --git a/index.html b/index.html index e35fdc5..a789957 100644 --- a/index.html +++ b/index.html @@ -5,11 +5,6 @@ HTML5 <x-knob> rotating knob web component -