Skip to content

Commit 6d9e98d

Browse files
authored
Merge pull request htacg#949 from drichardson/add-muted
Add muted and playsinline video attributes for HTML5.
2 parents 2641ff3 + dfd74c4 commit 6d9e98d

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

include/tidyenum.h

+2
Original file line numberDiff line numberDiff line change
@@ -1211,6 +1211,7 @@ typedef enum
12111211
TidyAttr_MAX, /**< MAX= */
12121212
TidyAttr_MEDIAGROUP, /**< MEDIAGROUP= */
12131213
TidyAttr_MIN, /**< MIN= */
1214+
TidyAttr_MUTED, /**< MUTED= */
12141215
TidyAttr_NOVALIDATE, /**< NOVALIDATE= */
12151216
TidyAttr_OPEN, /**< OPEN= */
12161217
TidyAttr_OPTIMUM, /**< OPTIMUM= */
@@ -1266,6 +1267,7 @@ typedef enum
12661267
TidyAttr_OnWAITING, /**< OnWAITING= */
12671268
TidyAttr_PATTERN, /**< PATTERN= */
12681269
TidyAttr_PLACEHOLDER, /**< PLACEHOLDER= */
1270+
TidyAttr_PLAYSINLINE, /**< PLAYSINLINE= */
12691271
TidyAttr_POSTER, /**< POSTER= */
12701272
TidyAttr_PRELOAD, /**< PRELOAD= */
12711273
TidyAttr_PUBDATE, /**< PUBDATE= */

src/attrdict.c

+2
Original file line numberDiff line numberDiff line change
@@ -3625,6 +3625,8 @@ const AttrVersion TY_(W3CAttrsFor_VIDEO)[] =
36253625
{ TidyAttr_HEIGHT, xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|HT50|XH50 },
36263626
{ TidyAttr_LOOP, xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|HT50|XH50 },
36273627
{ TidyAttr_MEDIAGROUP, xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|HT50|XH50 },
3628+
{ TidyAttr_MUTED, xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|HT50|XH50 },
3629+
{ TidyAttr_PLAYSINLINE, xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|HT50|XH50 },
36283630
{ TidyAttr_POSTER, xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|HT50|XH50 },
36293631
{ TidyAttr_PRELOAD, xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|HT50|XH50 },
36303632
{ TidyAttr_SRC, xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|xxxx|HT50|XH50 },

src/attrs.c

+2
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,7 @@ static const Attribute attribute_defs [] =
317317
{ TidyAttr_MAX, "max", CH_PCDATA },
318318
{ TidyAttr_MEDIAGROUP, "mediagroup", CH_PCDATA },
319319
{ TidyAttr_MIN, "min", CH_PCDATA },
320+
{ TidyAttr_MUTED, "muted", CH_BOOL },
320321
{ TidyAttr_NOVALIDATE, "novalidate", CH_PCDATA },
321322
{ TidyAttr_OPEN, "open", CH_BOOL }, /* Is. #925 PR #932 */
322323
{ TidyAttr_OPTIMUM, "optimum", CH_PCDATA },
@@ -372,6 +373,7 @@ static const Attribute attribute_defs [] =
372373
{ TidyAttr_OnWAITING, "onwaiting", CH_PCDATA },
373374
{ TidyAttr_PATTERN, "pattern", CH_PCDATA },
374375
{ TidyAttr_PLACEHOLDER, "placeholder", CH_PCDATA },
376+
{ TidyAttr_PLAYSINLINE, "playsinline", CH_BOOL },
375377
{ TidyAttr_POSTER, "poster", CH_PCDATA },
376378
{ TidyAttr_PRELOAD, "preload", CH_PCDATA },
377379
{ TidyAttr_PUBDATE, "pubdate", CH_PCDATA },

0 commit comments

Comments
 (0)