8000 Add "poster" as an acceptable attribute of <video> · html5lib/html5lib-python@8492ff6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8492ff6

Browse files
committed
Add "poster" as an acceptable attribute of <video>
This commit adds support for the "poster" attribute, marking its value as being a URI.
1 parent b837a90 commit 8492ff6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

html5lib/sanitizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class HTMLSanitizerMixin(object):
4949
'lang', 'list', 'longdesc', 'loop', 'loopcount', 'loopend',
5050
'loopstart', 'low', 'lowsrc', 'max', 'maxlength', 'media', 'method',
5151
'min', 'multiple', 'name', 'nohref', 'noshade', 'nowrap', 'open',
52-
'optimum', 'pattern', 'ping', 'point-size', 'prompt', 'pqg',
52+
'optimum', 'pattern', 'ping', 'point-size', 'poster', 'pqg', 'prompt',
5353
'radiogroup', 'readonly', 'rel', 'repeat-max', 'repeat-min',
5454
'replace', 'required', 'rev', 'rightspacing', 'rows', 'rowspan',
5555
'rules', 'scope', 'selected', 'shape', 'size', 'span', 'src', 'start',
@@ -97,7 +97,7 @@ class HTMLSanitizerMixin(object):
9797
'xml:base', 'xml:lang', 'xml:space', 'xmlns', 'xmlns:xlink', 'y',
9898
'y1', 'y2', 'zoomAndPan']
9999

100-
attr_val_is_uri = ['href', 'src', 'cite', 'action', 'longdesc',
100+
attr_val_is_uri = ['href', 'src', 'cite', 'action', 'longdesc', 'poster',
101101
'xlink:href', 'xml:base']
102102

103103
svg_attr_val_allows_ref = ['clip-path', 'color-profile', 'cursor', 'fill',

0 commit comments

Comments
 (0)
0