Update env_maker.js

This commit is contained in:
cilame 2021-12-16 10:11:36 +08:00 committed by GitHub
parent 86a3250404
commit c49eae4f20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1492,6 +1492,16 @@ function v_hook_getElement(e){
e[_y].childNodes[0] = r e[_y].childNodes[0] = r
e[_y].firstChild = r e[_y].firstChild = r
} }
if (!x){
x = /^ *< *([A-Za-z]+) *[^>]+> *$/.exec(ihtml)
if (x[1]){
var r = document[_y].createElement(x[1])
_odt(r, 'innerHTML', {get: function(){return ''}})
e[_y].children[0] = r
e[_y].childNodes[0] = r
e[_y].firstChild = r
}
}
return ihtml return ihtml
}}) }})
} }