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

Commit52ba64e

Browse files
committed
Fix typos
1 parentfdc5f3b commit52ba64e

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

‎html5lib/filters/optionaltags.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def is_optional_start(self, tagname, previous, next):
5858
eliftagname=='colgroup':
5959
# A colgroup element's start tag may be omitted if the first thing
6060
# inside the colgroup element is a col element, and if the element
61-
# is not immediatelypreceeded by another colgroup element whose
61+
# is not immediatelypreceded by another colgroup element whose
6262
# end tag has been omitted.
6363
iftypein ("StartTag","EmptyTag"):
6464
# XXX: we do not look at the preceding event, so instead we never
@@ -70,7 +70,7 @@ def is_optional_start(self, tagname, previous, next):
7070
eliftagname=='tbody':
7171
# A tbody element's start tag may be omitted if the first thing
7272
# inside the tbody element is a tr element, and if the element is
73-
# not immediatelypreceeded by a tbody, thead, or tfoot element
73+
# not immediatelypreceded by a tbody, thead, or tfoot element
7474
# whose end tag has been omitted.
7575
iftype=="StartTag":
7676
# omit the thead and tfoot elements' end tag when they are

‎html5lib/html5parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,7 @@ def endTagFrameset(self, token):
25642564
self.tree.openElements.pop()
25652565
if (notself.parser.innerHTMLand
25662566
self.tree.openElements[-1].name!="frameset"):
2567-
# If we're not in innerHTML mode and thethecurrent node is not a
2567+
# If we're not in innerHTML mode and the current node is not a
25682568
# "frameset" element (anymore) then switch.
25692569
self.parser.phase=self.parser.phases["afterFrameset"]
25702570

‎html5lib/inputstream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ def detectEncoding(self, parseMeta=True, chardet=True):
469469
ifencodingisNoneandparseMeta:
470470
encoding=self.detectEncodingMeta()
471471
confidence="tentative"
472-
# Guess with chardet, ifavaliable
472+
# Guess with chardet, ifavailable
473473
ifencodingisNoneandchardet:
474474
confidence="tentative"
475475
try:

‎html5lib/tests/support.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
fromhtml5libimporttreebuilders
1717
delbase_path
1818

19-
# Build a dict ofavaliable trees
19+
# Build a dict ofavailable trees
2020
treeTypes= {"DOM":treebuilders.getTreeBuilder("dom")}
2121

22-
# Try whatever etree implementations areavaliable from a list that are
22+
# Try whatever etree implementations areavailable from a list that are
2323
#"supposed" to work
2424
try:
2525
importxml.etree.ElementTreeasElementTree

‎html5lib/treebuilders/etree_lxml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def insertRoot(self, token):
315315
"""Create the document root"""
316316
# Because of the way libxml2 works, it doesn't seem to be possible to
317317
# alter information like the doctype after the tree has been parsed.
318-
# Therefore we need to use the built-in parser to create ouriniial
318+
# Therefore we need to use the built-in parser to create ourinitial
319319
# tree, after which we can add elements like normal
320320
docStr=""
321321
ifself.doctype:

‎html5lib/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def __getitem__(self, key):
6464
returndict.get(self,key,self.default)
6565

6666

67-
# Some utility functions todal with weirdness around UCS2 vs UCS4
67+
# Some utility functions todeal with weirdness around UCS2 vs UCS4
6868
# python builds
6969

7070
defisSurrogatePair(data):

‎utils/spider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def updateURLs(self, tree):
8080
exceptKeyError:
8181
pass
8282

83-
#Remove all non-http URLs anda dd a sutiable base URL where that is
83+
#Remove all non-http URLs andadd a suitable base URL where that is
8484
#missing
8585
newUrls=set()
8686
forurlinurls:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp