From 3fdb1a2ec31f97b853a28e585808d9d08c94ae53 Mon Sep 17 00:00:00 2001 From: Jean-Sebastien Legare Date: Fri, 12 Aug 2016 18:18:55 -0700 Subject: [PATCH] [bugfix] createShadowRoot is on the prototype. --- ext/shadowcrypt.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/shadowcrypt.js b/ext/shadowcrypt.js index c3dd4ae..d02e461 100644 --- a/ext/shadowcrypt.js +++ b/ext/shadowcrypt.js @@ -110,7 +110,7 @@ Content.within = function () { gateMethodProto(win.Selection.prototype, 'removeAllRanges', notInContentEditable.bind(null, win)); gateMethodProto(win.Selection.prototype, 'addRange', notInContentEditable.bind(null, win)); // caveat: breaks shadow dom for content - delete Element.createShadowRoot; + delete Element.prototype.createShadowRoot; shimSelectorsAPI(win); }