Advertisement
Guest User

diff

a guest
Sep 11th, 2019
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. diff -r build/dist/react-dom.production.min.js build2/dist/react-dom.production.min.js
  2. 395a396,407
  3. > function getToStringValue(value) {
  4. > switch (typeof value) {
  5. > case "boolean":
  6. > case "number":
  7. > case "object":
  8. > case "string":
  9. > case "undefined":
  10. > return value;
  11. > default:
  12. > return "";
  13. > }
  14. > }
  15. 434,445d445
  16. < function getToStringValue(value) {
  17. < switch (typeof value) {
  18. < case "boolean":
  19. < case "number":
  20. < case "object":
  21. < case "string":
  22. < case "undefined":
  23. < return value;
  24. < default:
  25. < return "";
  26. < }
  27. < }
  28. 7459,7471c7459,7468
  29. < if (
  30. < "http://www.w3.org/2000/svg" !== node.namespaceURI ||
  31. < "innerHTML" in node
  32. < )
  33. < node.innerHTML = html;
  34. < else {
  35. < reusableSVGContainer =
  36. < reusableSVGContainer || document.createElement("div");
  37. < reusableSVGContainer.innerHTML = "<svg>" + html + "</svg>";
  38. < for (html = reusableSVGContainer.firstChild; node.firstChild; )
  39. < node.removeChild(node.firstChild);
  40. < for (; html.firstChild; ) node.appendChild(html.firstChild);
  41. < }
  42. ---
  43. > if ("http://www.w3.org/2000/svg" === node.namespaceURI) {
  44. > if (!("innerHTML" in node)) {
  45. > reusableSVGContainer =
  46. > reusableSVGContainer || document.createElement("div");
  47. > reusableSVGContainer.innerHTML = "<svg>" + html.toString() + "</svg>";
  48. > for (html = reusableSVGContainer.firstChild; node.firstChild; )
  49. > node.removeChild(node.firstChild);
  50. > for (; html.firstChild; ) node.appendChild(html.firstChild);
  51. > }
  52. > } else node.innerHTML = html;
  53. diff -r build/node_modules/react-dom/umd/react-dom.production.min.js build2/node_modules/react-dom/umd/react-dom.production.min.js
  54. 395a396,407
  55. > function getToStringValue(value) {
  56. > switch (typeof value) {
  57. > case "boolean":
  58. > case "number":
  59. > case "object":
  60. > case "string":
  61. > case "undefined":
  62. > return value;
  63. > default:
  64. > return "";
  65. > }
  66. > }
  67. 434,445d445
  68. < function getToStringValue(value) {
  69. < switch (typeof value) {
  70. < case "boolean":
  71. < case "number":
  72. < case "object":
  73. < case "string":
  74. < case "undefined":
  75. < return value;
  76. < default:
  77. < return "";
  78. < }
  79. < }
  80. 7459,7471c7459,7468
  81. < if (
  82. < "http://www.w3.org/2000/svg" !== node.namespaceURI ||
  83. < "innerHTML" in node
  84. < )
  85. < node.innerHTML = html;
  86. < else {
  87. < reusableSVGContainer =
  88. < reusableSVGContainer || document.createElement("div");
  89. < reusableSVGContainer.innerHTML = "<svg>" + html + "</svg>";
  90. < for (html = reusableSVGContainer.firstChild; node.firstChild; )
  91. < node.removeChild(node.firstChild);
  92. < for (; html.firstChild; ) node.appendChild(html.firstChild);
  93. < }
  94. ---
  95. > if ("http://www.w3.org/2000/svg" === node.namespaceURI) {
  96. > if (!("innerHTML" in node)) {
  97. > reusableSVGContainer =
  98. > reusableSVGContainer || document.createElement("div");
  99. > reusableSVGContainer.innerHTML = "<svg>" + html.toString() + "</svg>";
  100. > for (html = reusableSVGContainer.firstChild; node.firstChild; )
  101. > node.removeChild(node.firstChild);
  102. > for (; html.firstChild; ) node.appendChild(html.firstChild);
  103. > }
  104. > } else node.innerHTML = html;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement