Repository navigation
fix(runtime-dom): treat disablepictureinpicture and disableremoteplayback as boolean attributes - #15952
Conversation
…back as boolean attributes ref vuejs#15627
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
@vue/compiler-core
@vue/compiler-dom
@vue/compiler-sfc
@vue/compiler-ssr
@vue/reactivity
@vue/runtime-core
@vue/runtime-dom
@vue/server-renderer
@vue/shared
vue
@vue/compat
commit: |
Size ReportBundles
Usages
|
<video :disablepictureinpicture="false">rendersdisablepictureinpicture="false", and the same happens fordisableremoteplayback. Both are boolean content attributes, so the browser reads the attribute as present and keeps Picture-in-Picture or remote playback disabled. For example, this player binds:disablepictureinpicture="!enablePip", and with that binding PiP can't be turned back on. In SSR output the attribute is also rendered as="false".This is the same root cause as #15627 (
playsinline). The DOM properties are camelCased (disablePictureInPicture,disableRemotePlayback), so the lowercase key fails thekey in elcheck and goes throughpatchAttr. These two attributes are added tospecialBooleanAttrs, which covers both the client and the SSRisBooleanAttrpath.Playground (3.5.44): link
Summary by CodeRabbit
Bug Fixes
disablepictureinpictureanddisableremoteplaybackattributes on video elements.Tests