Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -r build/dist/react-dom.production.min.js build2/dist/react-dom.production.min.js
- 395a396,407
- > function getToStringValue(value) {
- > switch (typeof value) {
- > case "boolean":
- > case "number":
- > case "object":
- > case "string":
- > case "undefined":
- > return value;
- > default:
- > return "";
- > }
- > }
- 434,445d445
- < function getToStringValue(value) {
- < switch (typeof value) {
- < case "boolean":
- < case "number":
- < case "object":
- < case "string":
- < case "undefined":
- < return value;
- < default:
- < return "";
- < }
- < }
- 7459,7471c7459,7468
- < if (
- < "http://www.w3.org/2000/svg" !== node.namespaceURI ||
- < "innerHTML" in node
- < )
- < node.innerHTML = html;
- < else {
- < reusableSVGContainer =
- < reusableSVGContainer || document.createElement("div");
- < reusableSVGContainer.innerHTML = "<svg>" + html + "</svg>";
- < for (html = reusableSVGContainer.firstChild; node.firstChild; )
- < node.removeChild(node.firstChild);
- < for (; html.firstChild; ) node.appendChild(html.firstChild);
- < }
- ---
- > if ("http://www.w3.org/2000/svg" === node.namespaceURI) {
- > if (!("innerHTML" in node)) {
- > reusableSVGContainer =
- > reusableSVGContainer || document.createElement("div");
- > reusableSVGContainer.innerHTML = "<svg>" + html.toString() + "</svg>";
- > for (html = reusableSVGContainer.firstChild; node.firstChild; )
- > node.removeChild(node.firstChild);
- > for (; html.firstChild; ) node.appendChild(html.firstChild);
- > }
- > } else node.innerHTML = html;
- diff -r build/node_modules/react-dom/umd/react-dom.production.min.js build2/node_modules/react-dom/umd/react-dom.production.min.js
- 395a396,407
- > function getToStringValue(value) {
- > switch (typeof value) {
- > case "boolean":
- > case "number":
- > case "object":
- > case "string":
- > case "undefined":
- > return value;
- > default:
- > return "";
- > }
- > }
- 434,445d445
- < function getToStringValue(value) {
- < switch (typeof value) {
- < case "boolean":
- < case "number":
- < case "object":
- < case "string":
- < case "undefined":
- < return value;
- < default:
- < return "";
- < }
- < }
- 7459,7471c7459,7468
- < if (
- < "http://www.w3.org/2000/svg" !== node.namespaceURI ||
- < "innerHTML" in node
- < )
- < node.innerHTML = html;
- < else {
- < reusableSVGContainer =
- < reusableSVGContainer || document.createElement("div");
- < reusableSVGContainer.innerHTML = "<svg>" + html + "</svg>";
- < for (html = reusableSVGContainer.firstChild; node.firstChild; )
- < node.removeChild(node.firstChild);
- < for (; html.firstChild; ) node.appendChild(html.firstChild);
- < }
- ---
- > if ("http://www.w3.org/2000/svg" === node.namespaceURI) {
- > if (!("innerHTML" in node)) {
- > reusableSVGContainer =
- > reusableSVGContainer || document.createElement("div");
- > reusableSVGContainer.innerHTML = "<svg>" + html.toString() + "</svg>";
- > for (html = reusableSVGContainer.firstChild; node.firstChild; )
- > node.removeChild(node.firstChild);
- > for (; html.firstChild; ) node.appendChild(html.firstChild);
- > }
- > } else node.innerHTML = html;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement