Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb3a5385

Browse files
committed
Work in progress
--HG--branch : svgmathmlrename : python/README => python3/READMErename : python/html5-tests.patch => python3/html5-tests.patchrename : python/parse.py => python3/parse.pyrename : python/setup.py => python3/setup.pyrename : python/setup_base.py => python3/setup_base.pyrename : python/src/html5lib/__init__.py => python3/src/html5lib/__init__.pyrename : python/src/html5lib/constants.py => python3/src/html5lib/constants.pyrename : python/src/html5lib/filters/__init__.py => python3/src/html5lib/filters/__init__.pyrename : python/src/html5lib/filters/_base.py => python3/src/html5lib/filters/_base.pyrename : python/src/html5lib/filters/formfiller.py => python3/src/html5lib/filters/formfiller.pyrename : python/src/html5lib/filters/inject_meta_charset.py => python3/src/html5lib/filters/inject_meta_charset.pyrename : python/src/html5lib/filters/iso639codes.py => python3/src/html5lib/filters/iso639codes.pyrename : python/src/html5lib/filters/lint.py => python3/src/html5lib/filters/lint.pyrename : python/src/html5lib/filters/optionaltags.py => python3/src/html5lib/filters/optionaltags.pyrename : python/src/html5lib/filters/rfc2046.py => python3/src/html5lib/filters/rfc2046.pyrename : python/src/html5lib/filters/rfc3987.py => python3/src/html5lib/filters/rfc3987.pyrename : python/src/html5lib/filters/sanitizer.py => python3/src/html5lib/filters/sanitizer.pyrename : python/src/html5lib/filters/validator.py => python3/src/html5lib/filters/validator.pyrename : python/src/html5lib/filters/whitespace.py => python3/src/html5lib/filters/whitespace.pyrename : python/src/html5lib/html5parser.py => python3/src/html5lib/html5parser.pyrename : python/src/html5lib/ihatexml.py => python3/src/html5lib/ihatexml.pyrename : python/src/html5lib/inputstream.py => python3/src/html5lib/inputstream.pyrename : python/src/html5lib/liberalxmlparser.py => python3/src/html5lib/liberalxmlparser.pyrename : python/src/html5lib/sanitizer.py => python3/src/html5lib/sanitizer.pyrename : python/src/html5lib/serializer/__init__.py => python3/src/html5lib/serializer/__init__.pyrename : python/src/html5lib/serializer/htmlserializer.py => python3/src/html5lib/serializer/htmlserializer.pyrename : python/src/html5lib/serializer/xhtmlserializer.py => python3/src/html5lib/serializer/xhtmlserializer.pyrename : python/src/html5lib/tokenizer.py => python3/src/html5lib/tokenizer.pyrename : python/src/html5lib/treebuilders/__init__.py => python3/src/html5lib/treebuilders/__init__.pyrename : python/src/html5lib/treebuilders/_base.py => python3/src/html5lib/treebuilders/_base.pyrename : python/src/html5lib/treebuilders/dom.py => python3/src/html5lib/treebuilders/dom.pyrename : python/src/html5lib/treebuilders/etree.py => python3/src/html5lib/treebuilders/etree.pyrename : python/src/html5lib/treebuilders/etree_lxml.py => python3/src/html5lib/treebuilders/etree_lxml.pyrename : python/src/html5lib/treebuilders/simpletree.py => python3/src/html5lib/treebuilders/simpletree.pyrename : python/src/html5lib/treebuilders/soup.py => python3/src/html5lib/treebuilders/soup.pyrename : python/src/html5lib/treewalkers/__init__.py => python3/src/html5lib/treewalkers/__init__.pyrename : python/src/html5lib/treewalkers/_base.py => python3/src/html5lib/treewalkers/_base.pyrename : python/src/html5lib/treewalkers/dom.py => python3/src/html5lib/treewalkers/dom.pyrename : python/src/html5lib/treewalkers/etree.py => python3/src/html5lib/treewalkers/etree.pyrename : python/src/html5lib/treewalkers/genshistream.py => python3/src/html5lib/treewalkers/genshistream.pyrename : python/src/html5lib/treewalkers/lxmletree.py => python3/src/html5lib/treewalkers/lxmletree.pyrename : python/src/html5lib/treewalkers/pulldom.py => python3/src/html5lib/treewalkers/pulldom.pyrename : python/src/html5lib/treewalkers/simpletree.py => python3/src/html5lib/treewalkers/simpletree.pyrename : python/src/html5lib/treewalkers/soup.py => python3/src/html5lib/treewalkers/soup.pyrename : python/src/html5lib/utils.py => python3/src/html5lib/utils.pyrename : python/tests/README => python3/tests/READMErename : python/tests/__init__.py => python3/tests/__init__.pyrename : python/tests/mockParser.py => python3/tests/mockParser.pyrename : python/tests/performance/concatenation.py => python3/tests/performance/concatenation.pyrename : python/tests/runparsertests.py => python3/tests/runparsertests.pyrename : python/tests/runtests.py => python3/tests/runtests.pyrename : python/tests/support.py => python3/tests/support.pyrename : python/tests/test_encoding.py => python3/tests/test_encoding.pyrename : python/tests/test_formfiller.py => python3/tests/test_formfiller.pyrename : python/tests/test_lxp.py => python3/tests/test_lxp.pyrename : python/tests/test_parser.py => python3/tests/test_parser.pyrename : python/tests/test_parser2.py => python3/tests/test_parser2.pyrename : python/tests/test_sanitizer.py => python3/tests/test_sanitizer.pyrename : python/tests/test_sax.py => python3/tests/test_sax.pyrename : python/tests/test_serializer.py => python3/tests/test_serializer.pyrename : python/tests/test_stream.py => python3/tests/test_stream.pyrename : python/tests/test_tokenizer.py => python3/tests/test_tokenizer.pyrename : python/tests/test_treewalkers.py => python3/tests/test_treewalkers.pyrename : python/tests/test_validator.py => python3/tests/test_validator.pyrename : python/tests/test_whitespace_filter.py => python3/tests/test_whitespace_filter.pyrename : python/tests/us-ascii.html => python3/tests/us-ascii.htmlrename : python/tests/utf-8-bom.html => python3/tests/utf-8-bom.htmlrename : python/utils/encodings.py => python3/utils/encodings.pyrename : python/utils/extract-entities.py => python3/utils/extract-entities.pyrename : python/utils/iana_parse.py => python3/utils/iana_parse.pyrename : python/utils/package.py => python3/utils/package.pyrename : python/utils/spider.py => python3/utils/spider.pyrename : python/validate.py => python3/validate.pyextra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/branches/svgmathml%401265
1 parentf47bc4f commitb3a5385

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

‎src/html5lib/html5parser.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2022,6 +2022,21 @@ def endTagOther(self, token):
20222022
self.parser.phases["inSelect"].processEndTag(token)
20232023

20242024

2025+
classInForeignContentPhase(Phase):
2026+
def__init__(self,parser,tree):
2027+
Phase.__init__(self,parser,tree)
2028+
self.secondardInsertionMode=None
2029+
2030+
defprocessStartTag(self,token):
2031+
2032+
self.startTagHandler=utils.MethodDispatcher([
2033+
("html",self.startTagHtml)
2034+
])
2035+
self.startTagHandler.default=self.startTagOther
2036+
2037+
self.endTagHandler=utils.MethodDispatcher([("html",self.endTagHtml)])
2038+
self.endTagHandler.default=self.endTagOther
2039+
20252040
classAfterBodyPhase(Phase):
20262041
def__init__(self,parser,tree):
20272042
Phase.__init__(self,parser,tree)

‎src/html5lib/tokenizer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,8 @@ def tagOpenState(self):
364364
elifdatainasciiLetters:
365365
self.currentToken= {"type":tokenTypes["StartTag"],
366366
"name":data,"data": [],
367-
"selfClosing":False}
367+
"selfClosing":False,
368+
"selfClosingAcknowledged":False}
368369
self.state=self.states["tagName"]
369370
elifdata==u">":
370371
# XXX In theory it could be something besides a tag name. But
@@ -761,7 +762,8 @@ def markupDeclarationOpenState(self):
761762
# so they can be copied directly into the bogus comment data, and only
762763
# the last character might be '>' or EOF and needs to be ungetted
763764
self.stream.unget(charStack.pop())
764-
self.currentToken= {"type":tokenTypes["Comment"],"data":u"".join(charStack)}
765+
self.currentToken= {"type":tokenTypes["Comment"],
766+
"data":u"".join(charStack)}
765767
self.state=self.states["bogusCommentContinuation"]
766768
returnTrue
767769

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp