回答編集履歴

1

remove の存在判定アルゴリズムを変更

2016/04/11 01:42

投稿

think49
think49

スコア18156

test CHANGED
@@ -32,7 +32,7 @@
32
32
 
33
33
  ```JavaScript
34
34
 
35
- if (typeof Element === 'function' && !('remove' in Element.prototype)) { // IE11- 用の Polyfill
35
+ if (typeof Element === 'function' && !('remove' in document.createElement('p'))) { // IE11- 用の Polyfill
36
36
 
37
37
  Element.prototype.remove = function remove () {
38
38