Rewrite type comments again

This commit is contained in:
Florian Bruhin 2018-07-16 22:35:40 +02:00
parent 03ac3b4d7d
commit b8c70e5986
2 changed files with 7 additions and 7 deletions

View File

@ -312,9 +312,9 @@ class _Downloader:
for style in styles:
style = webkitelem.WebKitElement(style, tab=self.tab)
# The Mozilla Developer Network says:
# type - This attribute defines the styling language as a MIME type
# (charset should not be specified). This attribute is optional and
# default to text/css if it's missing.
# > type: This attribute defines the styling language as a MIME
# > type (charset should not be specified). This attribute is
# > optional and default to text/css if it's missing.
# https://developer.mozilla.org/en/docs/Web/HTML/Element/style
if 'type' in style and style['type'] != 'text/css':
continue

View File

@ -74,10 +74,10 @@ class SqliteError(SqlError):
'13', # SQLITE_FULL
]
# At least in init(), we can get errors like this:
# type - ConnectionError
# database text: out of memory
# driver text: Error opening database
# error code: -1
# > type: ConnectionError
# > database text: out of memory
# > driver text: Error opening database
# > error code: -1
environmental_strings = [
"out of memory",
]