@@ -649,8 +649,8 @@ def __init__(self, parser, tree):
649
649
Phase .__init__ (self , parser , tree )
650
650
651
651
self .startTagHandler = utils .MethodDispatcher ([
652
- ("html" , self .startTagHtml ),
653
- ("head" , self .startTagHead )
652
+ (( "html" ,) , self .startTagHtml ),
653
+ (( "head" ,) , self .startTagHead )
654
654
])
655
655
self .startTagHandler .default = self .startTagOther
656
656
@@ -695,19 +695,19 @@ def __init__(self, parser, tree):
695
695
Phase .__init__ (self , parser , tree )
696
696
697
697
self .startTagHandler = utils .MethodDispatcher ([
698
- ("html" , self .startTagHtml ),
699
- ("title" , self .startTagTitle ),
698
+ (( "html" ,) , self .startTagHtml ),
699
+ (( "title" ,) , self .startTagTitle ),
700
700
(("noscript" , "noframes" , "style" ), self .startTagNoScriptNoFramesStyle ),
701
- ("script" , self .startTagScript ),
701
+ (( "script" ,) , self .startTagScript ),
702
702
(("base" , "basefont" , "bgsound" , "command" , "link" ),
703
703
self .startTagBaseLinkCommand ),
704
- ("meta" , self .startTagMeta ),
705
- ("head" , self .startTagHead )
704
+ (( "meta" ,) , self .startTagMeta ),
705
+ (( "head" ,) , self .startTagHead )
706
706
])
707
707
self .startTagHandler .default = self .startTagOther
708
708
709
709
self . endTagHandler = utils .MethodDispatcher ([
710
- ("head" , self .endTagHead ),
710
+ (( "head" ,) , self .endTagHead ),
711
711
(("br" , "html" , "body" ), self .endTagHtmlBodyBr )
712
712
])
713
713
self .endTagHandler .default = self .endTagOther
@@ -794,13 +794,13 @@ def __init__(self, parser, tree):
794
794
Phase .__init__ (self , parser , tree )
795
795
796
796
self .startTagHandler = utils .MethodDispatcher ([
797
- ("html" , self .startTagHtml ),
798
- ("body" , self .startTagBody ),
799
- ("frameset" , self .startTagFrameset ),
797
+ (( "html" ,) , self .startTagHtml ),
798
+ (( "body" ,) , self .startTagBody ),
799
+ (( "frameset" ,) , self .startTagFrameset ),
800
800
(("base" , "basefont" , "bgsound" , "link" , "meta" , "noframes" , "script" ,
801
801
"style" , "title" ),
802
802
self .startTagFromHead ),
803
- ("head" , self .startTagHead )
803
+ (( "head" ,) , self .startTagHead )
804
804
])
805
805
self .startTagHandler .default = self .startTagOther
806
806
self .endTagHandler = utils .MethodDispatcher ([(("body" , "html" , "br" ),
@@ -866,66 +866,66 @@ def __init__(self, parser, tree):
866
866
self .processSpaceCharactersNonPre = self .processSpaceCharacters
867
867
868
868
self .startTagHandler = utils .MethodDispatcher ([
869
- ("html" , self .startTagHtml ),
869
+ (( "html" ,) , self .startTagHtml ),
870
870
(("base" , "basefont" , "bgsound" , "command" , "link" , "meta" ,
871
871
"noframes" , "script" , "style" , "title" ),
872
872
self .startTagProcessInHead ),
873
- ("body" , self .startTagBody ),
874
- ("frameset" , self .startTagFrameset ),
873
+ (( "body" ,) , self .startTagBody ),
874
+ (( "frameset" ,) , self .startTagFrameset ),
875
875
(("address" , "article" , "aside" , "blockquote" , "center" , "details" ,
876
- "details" , " dir" , "div" , "dl" , "fieldset" , "figcaption" , "figure" ,
877
- "footer" , " header" , "hgroup" , "main" , "menu" , "nav" , "ol" , "p" ,
878
- "section" , " summary" , "ul" ),
876
+ "dir" , "div" , "dl" , "fieldset" , "figcaption" , "figure" , "footer " ,
877
+ "header" , "hgroup" , "main" , "menu" , "nav" , "ol" , "p" , "section " ,
878
+ "summary" , "ul" ),
879
879
self .startTagCloseP ),
880
880
(headingElements , self .startTagHeading ),
881
881
(("pre" , "listing" ), self .startTagPreListing ),
882
- ("form" , self .startTagForm ),
882
+ (( "form" ,) , self .startTagForm ),
883
883
(("li" , "dd" , "dt" ), self .startTagListItem ),
884
- ("plaintext" , self .startTagPlaintext ),
885
- ("a" , self .startTagA ),
884
+ (( "plaintext" ,) , self .startTagPlaintext ),
885
+ (( "a" ,) , self .startTagA ),
886
886
(("b" , "big" , "code" , "em" , "font" , "i" , "s" , "small" , "strike" ,
887
887
"strong" , "tt" , "u" ), self .startTagFormatting ),
888
- ("nobr" , self .startTagNobr ),
889
- ("button" , self .startTagButton ),
888
+ (( "nobr" ,) , self .startTagNobr ),
889
+ (( "button" ,) , self .startTagButton ),
890
890
(("applet" , "marquee" , "object" ), self .startTagAppletMarqueeObject ),
891
- ("xmp" , self .startTagXmp ),
892
- ("table" , self .startTagTable ),
891
+ (( "xmp" ,) , self .startTagXmp ),
892
+ (( "table" ,) , self .startTagTable ),
893
893
(("area" , "br" , "embed" , "img" , "keygen" , "wbr" ),
894
894
self .startTagVoidFormatting ),
895
895
(("param" , "source" , "track" ), self .startTagParamSource ),
896
- ("input" , self .startTagInput ),
897
- ("hr" , self .startTagHr ),
898
- ("image" , self .startTagImage ),
899
- ("isindex" , self .startTagIsIndex ),
900
- ("textarea" , self .startTagTextarea ),
901
- ("iframe" , self .startTagIFrame ),
902
- (("noembed" , "noframes" , " noscript" ), self .startTagRawtext ),
903
- ("select" , self .startTagSelect ),
896
+ (( "input" ,) , self .startTagInput ),
897
+ (( "hr" ,) , self .startTagHr ),
898
+ (( "image" ,) , self .startTagImage ),
899
+ (( "isindex" ,) , self .startTagIsIndex ),
900
+ (( "textarea" ,) , self .startTagTextarea ),
901
+ (( "iframe" ,) , self .startTagIFrame ),
902
+ (("noembed" , "noscript" ), self .startTagRawtext ),
903
+ (( "select" ,) , self .startTagSelect ),
904
904
(("rp" , "rt" ), self .startTagRpRt ),
905
905
(("option" , "optgroup" ), self .startTagOpt ),
906
- (("math" ), self .startTagMath ),
907
- (("svg" ), self .startTagSvg ),
906
+ (("math" , ), self .startTagMath ),
907
+ (("svg" , ), self .startTagSvg ),
908
908
(("caption" , "col" , "colgroup" , "frame" , "head" ,
909
909
"tbody" , "td" , "tfoot" , "th" , "thead" ,
910
910
"tr" ), self .startTagMisplaced )
911
911
])
912
912
self .startTagHandler .default = self .startTagOther
913
913
914
914
self .endTagHandler = utils .MethodDispatcher ([
915
- ("body" , self .endTagBody ),
916
- ("html" , self .endTagHtml ),
915
+ (( "body" ,) , self .endTagBody ),
916
+ (( "html" ,) , self .endTagHtml ),
917
917
(("address" , "article" , "aside" , "blockquote" , "button" , "center" ,
918
918
"details" , "dialog" , "dir" , "div" , "dl" , "fieldset" , "figcaption" , "figure" ,
919
919
"footer" , "header" , "hgroup" , "listing" , "main" , "menu" , "nav" , "ol" , "pre" ,
920
920
"section" , "summary" , "ul" ), self .endTagBlock ),
921
- ("form" , self .endTagForm ),
922
- ("p" , self .endTagP ),
921
+ (( "form" ,) , self .endTagForm ),
922
+ (( "p" ,) , self .endTagP ),
923
923
(("dd" , "dt" , "li" ), self .endTagListItem ),
924
924
(headingElements , self .endTagHeading ),
925
925
(("a" , "b" , "big" , "code" , "em" , "font" , "i" , "nobr" , "s" , "small" ,
926
926
"strike" , "strong" , "tt" , "u" ), self .endTagFormatting ),
927
927
(("applet" , "marquee" , "object" ), self .endTagAppletMarqueeObject ),
928
- ("br" , self .endTagBr ),
928
+ (( "br" ,) , self .endTagBr ),
929
929
])
930
930
self .endTagHandler .default = self .endTagOther
931
931
@@ -1587,7 +1587,7 @@ def __init__(self, parser, tree):
1587
1587
self .startTagHandler = utils .MethodDispatcher ([])
1588
1588
self .startTagHandler .default = self .startTagOther
1589
1589
self .endTagHandler = utils .MethodDispatcher ([
1590
- ("script" , self .endTagScript )])
1590
+ (( "script" ,) , self .endTagScript )])
1591
1591
self .endTagHandler .default = self .endTagOther
1592
1592
1593
1593
def processCharacters (self , token ):
@@ -1619,21 +1619,21 @@ class InTablePhase(Phase):
1619
1619
def __init__ (self , parser , tree ):
1620
1620
Phase .__init__ (self , parser , tree )
1621
1621
self .startTagHandler = utils .MethodDispatcher ([
1622
- ("html" , self .startTagHtml ),
1623
- ("caption" , self .startTagCaption ),
1624
- ("colgroup" , self .startTagColgroup ),
1625
- ("col" , self .startTagCol ),
1622
+ (( "html" ,) , self .startTagHtml ),
1623
+ (( "caption" ,) , self .startTagCaption ),
1624
+ (( "colgroup" ,) , self .startTagColgroup ),
1625
+ (( "col" ,) , self .startTagCol ),
1626
1626
(("tbody" , "tfoot" , "thead" ), self .startTagRowGroup ),
1627
1627
(("td" , "th" , "tr" ), self .startTagImplyTbody ),
1628
- ("table" , self .startTagTable ),
1628
+ (( "table" ,) , self .startTagTable ),
1629
1629
(("style" , "script" ), self .startTagStyleScript ),
1630
- ("input" , self .startTagInput ),
1631
- ("form" , self .startTagForm )
1630
+ (( "input" ,) , self .startTagInput ),
1631
+ (( "form" ,) , self .startTagForm )
1632
1632
])
1633
1633
self .startTagHandler .default = self .startTagOther
1634
1634
1635
1635
self .endTagHandler = utils .MethodDispatcher ([
1636
- ("table" , self .endTagTable ),
1636
+ (( "table" ,) , self .endTagTable ),
1637
1637
(("body" , "caption" , "col" , "colgroup" , "html" , "tbody" , "td" ,
1638
1638
"tfoot" , "th" , "thead" , "tr" ), self .endTagIgnore )
1639
1639
])
@@ -1810,15 +1810,15 @@ def __init__(self, parser, tree):
1810
1810
Phase .__init__ (self , parser , tree )
1811
1811
1812
1812
self .startTagHandler = utils .MethodDispatcher ([
1813
- ("html" , self .startTagHtml ),
1813
+ (( "html" ,) , self .startTagHtml ),
1814
1814
(("caption" , "col" , "colgroup" , "tbody" , "td" , "tfoot" , "th" ,
1815
1815
"thead" , "tr" ), self .startTagTableElement )
1816
1816
])
1817
1817
self .startTagHandler .default = self .startTagOther
1818
1818
1819
1819
self .endTagHandler = utils .MethodDispatcher ([
1820
- ("caption" , self .endTagCaption ),
1821
- ("table" , self .endTagTable ),
1820
+ (( "caption" ,) , self .endTagCaption ),
1821
+ (( "table" ,) , self .endTagTable ),
1822
1822
(("body" , "col" , "colgroup" , "html" , "tbody" , "td" , "tfoot" , "th" ,
1823
1823
"thead" , "tr" ), self .endTagIgnore )
1824
1824
])
@@ -1882,14 +1882,14 @@ def __init__(self, parser, tree):
1882
1882
Phase .__init__ (self , parser , tree )
1883
1883
1884
1884
self .startTagHandler = utils .MethodDispatcher ([
1885
- ("html" , self .startTagHtml ),
1886
- ("col" , self .startTagCol )
1885
+ (( "html" ,) , self .startTagHtml ),
1886
+ (( "col" ,) , self .startTagCol )
1887
1887
])
1888
1888
self .startTagHandler .default = self .startTagOther
1889
1889
1890
1890
self .endTagHandler = utils .MethodDispatcher ([
1891
- ("colgroup" , self .endTagColgroup ),
1892
- ("col" , self .endTagCol )
1891
+ (( "colgroup" ,) , self .endTagColgroup ),
1892
+ (( "col" ,) , self .endTagCol )
1893
1893
])
1894
1894
self .endTagHandler .default = self .endTagOther
1895
1895
@@ -1945,8 +1945,8 @@ class InTableBodyPhase(Phase):
1945
1945
def __init__ (self , parser , tree ):
1946
1946
Phase .__init__ (self , parser , tree )
1947
1947
self .startTagHandler = utils .MethodDispatcher ([
1948
- ("html" , self .startTagHtml ),
1949
- ("tr" , self .startTagTr ),
1948
+ (( "html" ,) , self .startTagHtml ),
1949
+ (( "tr" ,) , self .startTagTr ),
1950
1950
(("td" , "th" ), self .startTagTableCell ),
1951
1951
(("caption" , "col" , "colgroup" , "tbody" , "tfoot" , "thead" ),
1952
1952
self .startTagTableOther )
@@ -1955,7 +1955,7 @@ def __init__(self, parser, tree):
1955
1955
1956
1956
self .endTagHandler = utils .MethodDispatcher ([
1957
1957
(("tbody" , "tfoot" , "thead" ), self .endTagTableRowGroup ),
1958
- ("table" , self .endTagTable ),
1958
+ (( "table" ,) , self .endTagTable ),
1959
1959
(("body" , "caption" , "col" , "colgroup" , "html" , "td" , "th" ,
1960
1960
"tr" ), self .endTagIgnore )
1961
1961
])
@@ -2043,16 +2043,16 @@ class InRowPhase(Phase):
2043
2043
def __init__ (self , parser , tree ):
2044
2044
Phase .__init__ (self , parser , tree )
2045
2045
self .startTagHandler = utils .MethodDispatcher ([
2046
- ("html" , self .startTagHtml ),
2046
+ (( "html" ,) , self .startTagHtml ),
2047
2047
(("td" , "th" ), self .startTagTableCell ),
2048
2048
(("caption" , "col" , "colgroup" , "tbody" , "tfoot" , "thead" ,
2049
2049
"tr" ), self .startTagTableOther )
2050
2050
])
2051
2051
self .startTagHandler .default = self .startTagOther
2052
2052
2053
2053
self .endTagHandler = utils .MethodDispatcher ([
2054
- ("tr" , self .endTagTr ),
2055
- ("table" , self .endTagTable ),
2054
+ (( "tr" ,) , self .endTagTr ),
2055
+ (( "table" ,) , self .endTagTable ),
2056
2056
(("tbody" , "tfoot" , "thead" ), self .endTagTableRowGroup ),
2057
2057
(("body" , "caption" , "col" , "colgroup" , "html" , "td" , "th" ),
2058
2058
self .endTagIgnore )
@@ -2132,7 +2132,7 @@ class InCellPhase(Phase):
2132
2132
def __init__ (self , parser , tree ):
2133
2133
Phase .__init__ (self , parser , tree )
2134
2134
self .startTagHandler = utils .MethodDispatcher ([
2135
- ("html" , self .startTagHtml ),
2135
+ (( "html" ,) , self .startTagHtml ),
2136
2136
(("caption" , "col" , "colgroup" , "tbody" , "td" , "tfoot" , "th" ,
2137
2137
"thead" , "tr" ), self .startTagTableOther )
2138
2138
])
@@ -2208,19 +2208,19 @@ def __init__(self, parser, tree):
2208
2208
Phase .__init__ (self , parser , tree )
2209
2209
2210
2210
self .startTagHandler = utils .MethodDispatcher ([
2211
- ("html" , self .startTagHtml ),
2212
- ("option" , self .startTagOption ),
2213
- ("optgroup" , self .startTagOptgroup ),
2214
- ("select" , self .startTagSelect ),
2211
+ (( "html" ,) , self .startTagHtml ),
2212
+ (( "option" ,) , self .startTagOption ),
2213
+ (( "optgroup" ,) , self .startTagOptgroup ),
2214
+ (( "select" ,) , self .startTagSelect ),
2215
2215
(("input" , "keygen" , "textarea" ), self .startTagInput ),
2216
- ("script" , self .startTagScript )
2216
+ (( "script" ,) , self .startTagScript )
2217
2217
])
2218
2218
self .startTagHandler .default = self .startTagOther
2219
2219
2220
2220
self .endTagHandler = utils .MethodDispatcher ([
2221
- ("option" , self .endTagOption ),
2222
- ("optgroup" , self .endTagOptgroup ),
2223
- ("select" , self .endTagSelect )
2221
+ (( "option" ,) , self .endTagOption ),
2222
+ (( "optgroup" ,) , self .endTagOptgroup ),
2223
+ (( "select" ,) , self .endTagSelect )
2224
2224
])
2225
2225
self .endTagHandler .default = self .endTagOther
2226
2226
@@ -2462,11 +2462,13 @@ def __init__(self, parser, tree):
2462
2462
Phase .__init__ (self , parser , tree )
2463
2463
2464
2464
self .startTagHandler = utils .MethodDispatcher ([
2465
- ("html" , self .startTagHtml )
2465
+ (( "html" ,) , self .startTagHtml )
2466
2466
])
2467
2467
self .startTagHandler .default = self .startTagOther
2468
2468
2469
- self .endTagHandler = utils .MethodDispatcher ([("html" , self .endTagHtml )])
2469
+ self .endTagHandler = utils .MethodDispatcher ([
2470
+ (("html" ,), self .endTagHtml )
2471
+ ])
2470
2472
self .endTagHandler .default = self .endTagOther
2471
2473
2472
2474
def processEOF (self ):
@@ -2510,15 +2512,15 @@ def __init__(self, parser, tree):
2510
2512
Phase .__init__ (self , parser , tree )
2511
2513
2512
2514
self .startTagHandler = utils .MethodDispatcher ([
2513
- ("html" , self .startTagHtml ),
2514
- ("frameset" , self .startTagFrameset ),
2515
- ("frame" , self .startTagFrame ),
2516
- ("noframes" , self .startTagNoframes )
2515
+ (( "html" ,) , self .startTagHtml ),
2516
+ (( "frameset" ,) , self .startTagFrameset ),
2517
+ (( "frame" ,) , self .startTagFrame ),
2518
+ (( "noframes" ,) , self .startTagNoframes )
2517
2519
])
2518
2520
self .startTagHandler .default = self .startTagOther
2519
2521
2520
2522
self .endTagHandler = utils .MethodDispatcher ([
2521
- ("frameset" , self .endTagFrameset )
2523
+ (( "frameset" ,) , self .endTagFrameset )
2522
2524
])
2523
2525
self .endTagHandler .default = self .endTagOther
2524
2526
@@ -2567,13 +2569,13 @@ def __init__(self, parser, tree):
2567
2569
Phase .__init__ (self , parser , tree )
2568
2570
2569
2571
self .startTagHandler = utils .MethodDispatcher ([
2570
- ("html" , self .startTagHtml ),
2571
- ("noframes" , self .startTagNoframes )
2572
+ (( "html" ,) , self .startTagHtml ),
2573
+ (( "noframes" ,) , self .startTagNoframes )
2572
2574
])
2573
2575
self .startTagHandler .default = self .startTagOther
2574
2576
2575
2577
self .endTagHandler = utils .MethodDispatcher ([
2576
- ("html" , self .endTagHtml )
2578
+ (( "html" ,) , self .endTagHtml )
2577
2579
])
2578
2580
self .endTagHandler .default = self .endTagOther
2579
2581
@@ -2603,7 +2605,7 @@ def __init__(self, parser, tree):
2603
2605
Phase .__init__ (self , parser , tree )
2604
2606
2605
2607
self .startTagHandler = utils .MethodDispatcher ([
2606
- ("html" , self .startTagHtml )
2608
+ (( "html" ,) , self .startTagHtml )
2607
2609
])
2608
2610
self .startTagHandler .default = self .startTagOther
2609
2611
@@ -2641,8 +2643,8 @@ def __init__(self, parser, tree):
2641
2643
Phase .__init__ (self , parser , tree )
2642
2644
2643
2645
self .startTagHandler = utils .MethodDispatcher ([
2644
- ("html" , self .startTagHtml ),
2645
- ("noframes" , self .startTagNoFrames )
2646
+ (( "html" ,) , self .startTagHtml ),
2647
+ (( "noframes" ,) , self .startTagNoFrames )
2646
2648
])
2647
2649
self .startTagHandler .default = self .startTagOther
2648
2650
0 commit comments