Skip to content

Commit e36aa16

Browse files
author
liufeichun
committed
fix(runtime-dom): restrict to iframe tag
1 parent cc9cf7f commit e36aa16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/runtime-dom/src/patchProp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function shouldSetAsProp(
114114
// #13946 iframe.sandbox should always be set as attribute since setting
115115
// the property to null results in 'null' string, and setting to empty string
116116
// enables the most restrictive sandbox mode instead of no sandboxing.
117-
if (key === 'sandbox') {
117+
if (key === 'sandbox' && el.tagName === 'IFRAME') {
118118
return false
119119
}
120120

0 commit comments

Comments
 (0)