回答編集履歴
1
remove の存在判定アルゴリズムを変更
test
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
```JavaScript
|
34
34
|
|
35
|
-
if (typeof Element === 'function' && !('remove' in
|
35
|
+
if (typeof Element === 'function' && !('remove' in document.createElement('p'))) { // IE11- 用の Polyfill
|
36
36
|
|
37
37
|
Element.prototype.remove = function remove () {
|
38
38
|
|