1 import { document } from "../var/document.js";
3 var preservedScriptAttributes = {
10 export function DOMEval( code, node, doc ) {
11 doc = doc || document;
14 script = doc.createElement( "script" );
17 for ( i in preservedScriptAttributes ) {
18 if ( node && node[ i ] ) {
19 script[ i ] = node[ i ];
23 if ( doc.head.appendChild( script ).parentNode ) {
24 script.parentNode.removeChild( script );