This commit is contained in:
cilame 2022-05-20 09:20:44 +08:00
parent b4f808e9a7
commit 56b4b3f8d9

View File

@ -33,10 +33,10 @@ function make_v(envs, keys){
removeChild: {value: ''}, removeChild: {value: ''},
}, },
HTMLElement: { HTMLElement: {
style: {value: 'return this._style'}, style: {value: 'return this.v_style'},
}, },
Element: { Element: {
tagName: {value: 'return this._tagName'}, tagName: {value: 'return this.v_tagName'},
}, },
Storage:{ Storage:{
clear:{ ban: true }, clear:{ ban: true },
@ -558,8 +558,8 @@ function make_v(envs, keys){
` }`, ` }`,
` }`, ` }`,
` if (!ret){ ret = v_new(HTMLUnknownElement) }`, ` if (!ret){ ret = v_new(HTMLUnknownElement) }`,
` if (typeof CSSStyleDeclaration != 'undefined') { ret._style = v_new(CSSStyleDeclaration) }`, ` if (typeof CSSStyleDeclaration != 'undefined') { ret.v_style = v_new(CSSStyleDeclaration) }`,
` ret._tagName = name.toUpperCase()`, ` ret.v_tagName = name.toUpperCase()`,
` return ret`, ` return ret`,
]) ])
v_cele.push('}') v_cele.push('}')