Update env_maker.js

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

View File

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