File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,11 @@ export function transformAttribute(
252252 }
253253}
254254
255- export function ignoreAttribute ( tagName : string , name : string , _value : unknown ) : boolean {
255+ export function ignoreAttribute (
256+ tagName : string ,
257+ name : string ,
258+ _value : unknown ,
259+ ) : boolean {
256260 return ( tagName === 'video' || tagName === 'audio' ) && name === 'autoplay' ;
257261}
258262
Original file line number Diff line number Diff line change @@ -558,7 +558,7 @@ export default class MutationBuffer {
558558 styleObj [ pname ] = false ; // delete
559559 }
560560 }
561- } else if ( ! ignoreAttribute ( target . tagName , m . attributeName ! , value ) ) {
561+ } else if ( ! ignoreAttribute ( target . tagName , m . attributeName ! , value ) ) {
562562 // overwrite attribute if the mutations was triggered in same time
563563 item . attributes [ m . attributeName ! ] = transformAttribute (
564564 this . doc ,
You can’t perform that action at this time.
0 commit comments