Skip to content

Commit 52ba64e

Browse files
committed
Fix typos
1 parent fdc5f3b commit 52ba64e

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
elif tagname == '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 immediately preceeded by another colgroup element whose
61+
# is not immediately preceded by another colgroup element whose
6262
# end tag has been omitted.
6363
if type in ("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
elif tagname == '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 immediately preceeded by a tbody, thead, or tfoot element
73+
# not immediately preceded by a tbody, thead, or tfoot element
7474
# whose end tag has been omitted.
7575
if type == "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 (not self.parser.innerHTML and
25662566
self.tree.openElements[-1].name != "frameset"):
2567-
# If we're not in innerHTML mode and the the current 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
if encoding is None and parseMeta:
470470
encoding = self.detectEncodingMeta()
471471
confidence = "tentative"
472-
# Guess with chardet, if avaliable
472+
# Guess with chardet, if available
473473
if encoding is None and chardet:
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
from html5lib import treebuilders
1717
del base_path
1818

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

22-
# Try whatever etree implementations are avaliable from a list that are
22+
# Try whatever etree implementations are available from a list that are
2323
#"supposed" to work
2424
try:
2525
import xml.etree.ElementTree as ElementTree

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 our iniial
318+
# Therefore we need to use the built-in parser to create our initial
319319
# tree, after which we can add elements like normal
320320
docStr = ""
321321
if self.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
return dict.get(self, key, self.default)
6565

6666

67-
# Some utility functions to dal with weirdness around UCS2 vs UCS4
67+
# Some utility functions to deal with weirdness around UCS2 vs UCS4
6868
# python builds
6969

7070
def isSurrogatePair(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
except KeyError:
8181
pass
8282

83-
#Remove all non-http URLs and a dd a sutiable base URL where that is
83+
#Remove all non-http URLs and add a suitable base URL where that is
8484
#missing
8585
newUrls = set()
8686
for url in urls:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy