@@ -169,7 +169,7 @@ def mainLoop(self):
169169 (self .isMathMLTextIntegrationPoint (currentNode )and
170170 ((type == StartTagToken and
171171token ["name" ]not in frozenset (["mglyph" ,"malignmark" ]))or
172- type in (CharactersToken ,SpaceCharactersToken )))or
172+ type in (CharactersToken ,SpaceCharactersToken )))or
173173 (currentNodeNamespace == namespaces ["mathml" ]and
174174currentNodeName == "annotation-xml" and
175175token ["name" ]== "svg" )or
@@ -507,61 +507,61 @@ def processDoctype(self, token):
507507
508508if (not correct or token ["name" ]!= "html"
509509or publicId .startswith (
510- ("+//silmaril//dtd html pro v0r11 19970101//" ,
511- "-//advasoft ltd//dtd html 3.0 aswedit + extensions//" ,
512- "-//as//dtd html 3.0 aswedit + extensions//" ,
513- "-//ietf//dtd html 2.0 level 1//" ,
514- "-//ietf//dtd html 2.0 level 2//" ,
515- "-//ietf//dtd html 2.0 strict level 1//" ,
516- "-//ietf//dtd html 2.0 strict level 2//" ,
517- "-//ietf//dtd html 2.0 strict//" ,
518- "-//ietf//dtd html 2.0//" ,
519- "-//ietf//dtd html 2.1e//" ,
520- "-//ietf//dtd html 3.0//" ,
521- "-//ietf//dtd html 3.2 final//" ,
522- "-//ietf//dtd html 3.2//" ,
523- "-//ietf//dtd html 3//" ,
524- "-//ietf//dtd html level 0//" ,
525- "-//ietf//dtd html level 1//" ,
526- "-//ietf//dtd html level 2//" ,
527- "-//ietf//dtd html level 3//" ,
528- "-//ietf//dtd html strict level 0//" ,
529- "-//ietf//dtd html strict level 1//" ,
530- "-//ietf//dtd html strict level 2//" ,
531- "-//ietf//dtd html strict level 3//" ,
532- "-//ietf//dtd html strict//" ,
533- "-//ietf//dtd html//" ,
534- "-//metrius//dtd metrius presentational//" ,
535- "-//microsoft//dtd internet explorer 2.0 html strict//" ,
536- "-//microsoft//dtd internet explorer 2.0 html//" ,
537- "-//microsoft//dtd internet explorer 2.0 tables//" ,
538- "-//microsoft//dtd internet explorer 3.0 html strict//" ,
539- "-//microsoft//dtd internet explorer 3.0 html//" ,
540- "-//microsoft//dtd internet explorer 3.0 tables//" ,
541- "-//netscape comm. corp.//dtd html//" ,
542- "-//netscape comm. corp.//dtd strict html//" ,
543- "-//o'reilly and associates//dtd html 2.0//" ,
544- "-//o'reilly and associates//dtd html extended 1.0//" ,
545- "-//o'reilly and associates//dtd html extended relaxed 1.0//" ,
546- "-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//" ,
547- "-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//" ,
548- "-//spyglass//dtd html 2.0 extended//" ,
549- "-//sq//dtd html 2.0 hotmetal + extensions//" ,
550- "-//sun microsystems corp.//dtd hotjava html//" ,
551- "-//sun microsystems corp.//dtd hotjava strict html//" ,
552- "-//w3c//dtd html 3 1995-03-24//" ,
553- "-//w3c//dtd html 3.2 draft//" ,
554- "-//w3c//dtd html 3.2 final//" ,
555- "-//w3c//dtd html 3.2//" ,
556- "-//w3c//dtd html 3.2s draft//" ,
557- "-//w3c//dtd html 4.0 frameset//" ,
558- "-//w3c//dtd html 4.0 transitional//" ,
559- "-//w3c//dtd html experimental 19960712//" ,
560- "-//w3c//dtd html experimental 970421//" ,
561- "-//w3c//dtd w3 html//" ,
562- "-//w3o//dtd w3 html 3.0//" ,
563- "-//webtechs//dtd mozilla html 2.0//" ,
564- "-//webtechs//dtd mozilla html//" ))
510+ ("+//silmaril//dtd html pro v0r11 19970101//" ,
511+ "-//advasoft ltd//dtd html 3.0 aswedit + extensions//" ,
512+ "-//as//dtd html 3.0 aswedit + extensions//" ,
513+ "-//ietf//dtd html 2.0 level 1//" ,
514+ "-//ietf//dtd html 2.0 level 2//" ,
515+ "-//ietf//dtd html 2.0 strict level 1//" ,
516+ "-//ietf//dtd html 2.0 strict level 2//" ,
517+ "-//ietf//dtd html 2.0 strict//" ,
518+ "-//ietf//dtd html 2.0//" ,
519+ "-//ietf//dtd html 2.1e//" ,
520+ "-//ietf//dtd html 3.0//" ,
521+ "-//ietf//dtd html 3.2 final//" ,
522+ "-//ietf//dtd html 3.2//" ,
523+ "-//ietf//dtd html 3//" ,
524+ "-//ietf//dtd html level 0//" ,
525+ "-//ietf//dtd html level 1//" ,
526+ "-//ietf//dtd html level 2//" ,
527+ "-//ietf//dtd html level 3//" ,
528+ "-//ietf//dtd html strict level 0//" ,
529+ "-//ietf//dtd html strict level 1//" ,
530+ "-//ietf//dtd html strict level 2//" ,
531+ "-//ietf//dtd html strict level 3//" ,
532+ "-//ietf//dtd html strict//" ,
533+ "-//ietf//dtd html//" ,
534+ "-//metrius//dtd metrius presentational//" ,
535+ "-//microsoft//dtd internet explorer 2.0 html strict//" ,
536+ "-//microsoft//dtd internet explorer 2.0 html//" ,
537+ "-//microsoft//dtd internet explorer 2.0 tables//" ,
538+ "-//microsoft//dtd internet explorer 3.0 html strict//" ,
539+ "-//microsoft//dtd internet explorer 3.0 html//" ,
540+ "-//microsoft//dtd internet explorer 3.0 tables//" ,
541+ "-//netscape comm. corp.//dtd html//" ,
542+ "-//netscape comm. corp.//dtd strict html//" ,
543+ "-//o'reilly and associates//dtd html 2.0//" ,
544+ "-//o'reilly and associates//dtd html extended 1.0//" ,
545+ "-//o'reilly and associates//dtd html extended relaxed 1.0//" ,
546+ "-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//" ,
547+ "-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//" ,
548+ "-//spyglass//dtd html 2.0 extended//" ,
549+ "-//sq//dtd html 2.0 hotmetal + extensions//" ,
550+ "-//sun microsystems corp.//dtd hotjava html//" ,
551+ "-//sun microsystems corp.//dtd hotjava strict html//" ,
552+ "-//w3c//dtd html 3 1995-03-24//" ,
553+ "-//w3c//dtd html 3.2 draft//" ,
554+ "-//w3c//dtd html 3.2 final//" ,
555+ "-//w3c//dtd html 3.2//" ,
556+ "-//w3c//dtd html 3.2s draft//" ,
557+ "-//w3c//dtd html 4.0 frameset//" ,
558+ "-//w3c//dtd html 4.0 transitional//" ,
559+ "-//w3c//dtd html experimental 19960712//" ,
560+ "-//w3c//dtd html experimental 970421//" ,
561+ "-//w3c//dtd w3 html//" ,
562+ "-//w3o//dtd w3 html 3.0//" ,
563+ "-//webtechs//dtd mozilla html 2.0//" ,
564+ "-//webtechs//dtd mozilla html//" ))
565565or publicId in
566566 ("-//w3o//dtd w3 html strict 3.0//en//" ,
567567"-/w3c/dtd html 4.0 transitional/en" ,