@@ -62,11 +62,6 @@ export function RegularElement(node, context) {
62
62
context . state . metadata . context . template_contains_script_tag = true ;
63
63
}
64
64
65
- const child_metadata = {
66
- ...context . state . metadata ,
67
- namespace : determine_namespace_for_children ( node , context . state . metadata . namespace )
68
- } ;
69
-
70
65
context . state . template . push ( `<${ node . name } ` ) ;
71
66
72
67
/** @type {Array<AST.Attribute | AST.SpreadAttribute> } */
@@ -164,18 +159,6 @@ export function RegularElement(node, context) {
164
159
}
165
160
}
166
161
167
- if ( bindings . has ( 'innerHTML' ) || bindings . has ( 'innerText' ) || bindings . has ( 'textContent' ) ) {
168
- const contenteditable = lookup . get ( 'contenteditable' ) ;
169
-
170
- if (
171
- contenteditable &&
172
- ( contenteditable . value === true ||
173
- ( is_text_attribute ( contenteditable ) && contenteditable . value [ 0 ] . data === 'true' ) )
174
- ) {
175
- child_metadata . bound_contenteditable = true ;
176
- }
177
- }
178
-
179
162
if (
180
163
node . name === 'input' &&
181
164
node . attributes . some ( ( attribute ) => {
@@ -294,6 +277,23 @@ export function RegularElement(node, context) {
294
277
295
278
context . state . template . push ( '>' ) ;
296
279
280
+ const child_metadata = {
281
+ ...context . state . metadata ,
282
+ namespace : determine_namespace_for_children ( node , context . state . metadata . namespace )
283
+ } ;
284
+
285
+ if ( bindings . has ( 'innerHTML' ) || bindings . has ( 'innerText' ) || bindings . has ( 'textContent' ) ) {
286
+ const contenteditable = lookup . get ( 'contenteditable' ) ;
287
+
288
+ if (
289
+ contenteditable &&
290
+ ( contenteditable . value === true ||
291
+ ( is_text_attribute ( contenteditable ) && contenteditable . value [ 0 ] . data === 'true' ) )
292
+ ) {
293
+ child_metadata . bound_contenteditable = true ;
294
+ }
295
+ }
296
+
297
297
/** @type {ComponentClientTransformState } */
298
298
const state = {
299
299
...context . state ,
0 commit comments