{"ScriptPreparationCode":null,"TestCases":[{"Name":"DOMParser code","Code":"const prerendered = \u0060\r\n\u003Cdiv\u003E\r\n \u003Ctemplate shadowroot=\u0022open\u0022\u003E\r\n \u003Cp\u003E Dynamically loaded shadow dom \u003C/p\u003E\r\n \u003Cp\u003E Dynamically loaded shadow dom \u003C/p\u003E\r\n \u003C/template\u003E\r\n\u003C/div\u003E\r\n\u0060;\r\n\r\nconst elem = new DOMParser().parseFromString(prerendered, \u0027text/html\u0027, { includeShadowRoots: true});\r\n\r\ndocument.getElementById(\u0027container\u0027).appendChild(...elem.body.children)","IsDeferred":false},{"Name":"AttachShadow","Code":"const container = document.getElementById(\u0027container\u0027);\r\n\r\nconst elem = document.createElement(\u0027div\u0027);\r\nconst shadow = elem.attachShadow({mode: \u0027open\u0027});\r\n\r\nshadow.textContent = \u0060\r\n \u003Cp\u003E Dynamically loaded shadow dom \u003C/p\u003E\r\n \u003Cp\u003E Dynamically loaded shadow dom \u003C/p\u003E\r\n\u0060;\r\n\r\ncontainer.appendChild(elem);","IsDeferred":false}]}