aboutsummaryrefslogtreecommitdiff
path: root/node_modules.patch
blob: 539174974114486710be7c17ef4bfcb5d91fc733 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--- node_modules/snabbdom/es/modules/props.js
+++ node_modules/snabbdom/es/modules/props.js
@@ -8,7 +8,11 @@
     props = props || {};
     for (key in oldProps) {
         if (!props[key]) {
-            delete elm[key];
+            if (key === 'style') {
+                elm[key] = '';
+            } else {
+                delete elm[key];
+            }
         }
     }
     for (key in props) {


--- node_modules/snabbdom/es/modules/attributes.js
+++ node_modules/snabbdom/es/modules/attributes.js
@@ -22,20 +22,7 @@
                 elm.removeAttribute(key);
             }
             else {
-                if (key.charCodeAt(0) !== xChar) {
-                    elm.setAttribute(key, cur);
-                }
-                else if (key.charCodeAt(3) === colonChar) {
-                    // Assume xml namespace
-                    elm.setAttributeNS(xmlNS, key, cur);
-                }
-                else if (key.charCodeAt(5) === colonChar) {
-                    // Assume xlink namespace
-                    elm.setAttributeNS(xlinkNS, key, cur);
-                }
-                else {
-                    elm.setAttribute(key, cur);
-                }
+                elm.setAttribute(key, cur);
             }
         }
     }