Skip to content

Commit 54ada1c

Browse files
author
James Graham
committed
Add track element
--HG-- extra : transplant_source : %A7%7D%29m%2B%12%95%9Bh%083%18%A2%29j%EC%FB%0E%E6%B2
1 parent ca84401 commit 54ada1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

html5lib/html5parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def startswithany(str, prefixes):
4646
from constants import tokenTypes, ReparseException, namespaces, spaceCharacters
4747
from constants import htmlIntegrationPointElements, mathmlTextIntegrationPointElements
4848

49-
def parse(doc, treebuilder="simpletree", encoding=None,
49+
def parse(doc, treebuilder="simpletree", encoding=None,
5050
namespaceHTMLElements=True):
5151
"""Parse a string or file-like object into a tree"""
5252
tb = treebuilders.getTreeBuilder(treebuilder)
@@ -941,7 +941,7 @@ def __init__(self, parser, tree):
941941
("table", self.startTagTable),
942942
(("area", "br", "embed", "img", "input", "keygen",
943943
"wbr"), self.startTagVoidFormatting),
944-
(("param", "source"), self.startTagParamSource),
944+
(("param", "source", "track"), self.startTagParamSource),
945945
("hr", self.startTagHr),
946946
("image", self.startTagImage),
947947
("isindex", self.startTagIsIndex),

0 commit comments

Comments
 (0)