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(
273
273
let el : Element ;
274
274
if ( isElement ( node ) ) {
275
275
el = node ;
276
+ if ( maskTextSelector === '*' ) return true ;
276
277
if ( ! dom . childNodes ( el ) . length ) {
277
278
// optimisation: we can avoid any of the below checks on leaf elements
278
279
// 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 {
693
693
}
694
694
const old = this . unattachedDoc . createElement ( 'span' ) ;
695
695
if ( m . oldValue ) {
696
- old . setAttribute ( ' style' , m . oldValue ) ;
696
+ old . style . cssText = m . oldValue ;
697
697
}
698
698
for ( const pname of Array . from ( target . style ) ) {
699
699
const newValue = target . style . getPropertyValue ( pname ) ;
You can’t perform that action at this time.
0 commit comments