{"ScriptPreparationCode":"function stringToSVG1(svgString) {\r\n const parser = new DOMParser();\r\n const doc = parser.parseFromString(svgString, \u0027image/svg\u002Bxml\u0027);\r\n return doc.documentElement;\r\n}\r\nfunction stringToSVG2(svgString) {\r\n const div = document.createElement(\u0022DIV\u0022);\r\n div.innerHTML = svgString;\r\n const ret = div.firstChild;\r\n div.removeChild(ret);\r\n return ret;\r\n}\r\n\r\nvar svgString = \u0060\u003Csvg width=\u0022100\u0022 height=\u0022100\u0022 xmlns=\u0022http://www.w3.org/2000/svg\u0022\u003E\r\n \u003Ccircle cx=\u002250\u0022 cy=\u002250\u0022 r=\u002240\u0022 stroke=\u0022black\u0022 stroke-width=\u00223\u0022 fill=\u0022red\u0022 /\u003E\r\n\u003C/svg\u003E\u0060;\r\n","TestCases":[{"Name":"DOMParser","Code":"let svgElement = stringToSVG1(svgString);","IsDeferred":false},{"Name":"innerHTML","Code":"let svgElement = stringToSVG2(svgString);","IsDeferred":false}]}