@@ -297,24 +297,14 @@ export function RegularElement(node, context) {
297297 }
298298
299299 if ( name === 'class' ) {
300- const is_svg = context . state . metadata . namespace === 'svg' || node . name === 'svg' ;
301- const is_mathml = context . state . metadata . namespace === 'mathml' ;
302-
303- build_set_class ( node , node_id , attribute , class_directives , context , ! is_svg && ! is_mathml ) ;
300+ const is_html = context . state . metadata . namespace === 'html' && node . name !== 'svg' ;
301+ build_set_class ( node , node_id , attribute , class_directives , context , is_html ) ;
304302 } else if ( name === 'style' ) {
305303 build_set_style ( node_id , attribute , style_directives , context ) ;
306304 } else if ( is_custom_element ) {
307305 build_custom_element_attribute_update_assignment ( node_id , attribute , context ) ;
308306 } else {
309- build_element_attribute_update_assignment (
310- node ,
311- node_id ,
312- attribute ,
313- attributes ,
314- class_directives ,
315- style_directives ,
316- context
317- ) ;
307+ build_element_attribute_update_assignment ( node , node_id , attribute , attributes , context ) ;
318308 }
319309 }
320310 }
@@ -585,17 +575,13 @@ export function build_style_directives_object(style_directives, context) {
585575 * @param {Identifier } node_id
586576 * @param {AST.Attribute } attribute
587577 * @param {Array<AST.Attribute | AST.SpreadAttribute> } attributes
588- * @param {AST.ClassDirective[] } class_directives
589- * @param {AST.StyleDirective[] } style_directives
590578 * @param {ComponentContext } context
591579 */
592580function build_element_attribute_update_assignment (
593581 element ,
594582 node_id ,
595583 attribute ,
596584 attributes ,
597- class_directives ,
598- style_directives ,
599585 context
600586) {
601587 const state = context . state ;
0 commit comments