Skip to content

Commit 144b643

Browse files
committed
Improving support for more boolean attributes:
Added: - `defer` - `disablepictureinpicture` - `disableremoteplayback` Improved: - `allowfullscreen` - `novalidate`
1 parent d9f2c14 commit 144b643

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

packages/svelte/src/utils.js

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,10 @@ const DOM_BOOLEAN_ATTRIBUTES = [
170170
'reversed',
171171
'seamless',
172172
'selected',
173-
'webkitdirectory'
173+
'webkitdirectory',
174+
'defer',
175+
'disablepictureinpicture',
176+
'disableremoteplayback'
174177
];
175178

176179
/**
@@ -197,7 +200,10 @@ const ATTRIBUTE_ALIASES = {
197200
defaultvalue: 'defaultValue',
198201
defaultchecked: 'defaultChecked',
199202
srcobject: 'srcObject',
200-
novalidate: 'noValidate'
203+
novalidate: 'noValidate',
204+
allowfullscreen: 'allowFullscreen',
205+
disablepictureinpicture: 'disablePictureInPicture',
206+
disableremoteplayback: 'disableRemotePlayback'
201207
};
202208

203209
/**
@@ -219,7 +225,11 @@ const DOM_PROPERTIES = [
219225
'volume',
220226
'defaultValue',
221227
'defaultChecked',
222-
'srcObject'
228+
'srcObject',
229+
'noValidate',
230+
'allowFullscreen',
231+
'disablePictureInPicture',
232+
'disableRemotePlayback'
223233
];
224234

225235
/**

0 commit comments

Comments
 (0)