File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -273,6 +273,7 @@ export function needMaskingText(
273273 let el : Element ;
274274 if ( isElement ( node ) ) {
275275 el = node ;
276+ if ( maskTextSelector === '*' ) return true ;
276277 if ( ! dom . childNodes ( el ) . length ) {
277278 // optimisation: we can avoid any of the below checks on leaf elements
278279 // as masking is applied to child text nodes only
Original file line number Diff line number Diff line change @@ -693,7 +693,7 @@ export default class MutationBuffer {
693693 }
694694 const old = this . unattachedDoc . createElement ( 'span' ) ;
695695 if ( m . oldValue ) {
696- old . setAttribute ( ' style' , m . oldValue ) ;
696+ old . style . cssText = m . oldValue ;
697697 }
698698 for ( const pname of Array . from ( target . style ) ) {
699699 const newValue = target . style . getPropertyValue ( pname ) ;
You can’t perform that action at this time.
0 commit comments