Update the HTML Inspector
This commit is contained in:
parent
e144cecfbf
commit
3cc765a9c7
|
@ -28,8 +28,8 @@ pytest test_inspect_html.py
|
||||||
⚠️ 'property' is not a valid attribute of the <meta> element.
|
⚠️ 'property' is not a valid attribute of the <meta> element.
|
||||||
⚠️ Do not use <div> or <span> elements without any attributes.
|
⚠️ Do not use <div> or <span> elements without any attributes.
|
||||||
⚠️ 'srcset' is not a valid attribute of the <img> element.
|
⚠️ 'srcset' is not a valid attribute of the <img> element.
|
||||||
⚠️ The 'border' attribute is no longer valid on the <img> element and should not be used.
|
⚠️ The 'border' attribute is no longer valid on the <img> element.
|
||||||
⚠️ The <center> element is obsolete and should not be used.
|
⚠️ The <center> element is obsolete.
|
||||||
⚠️ The id 'comicLinks' appears more than once in the document.
|
⚠️ The id 'comicLinks' appears more than once in the document.
|
||||||
* (See the Console output for details!)
|
* (See the Console output for details!)
|
||||||
```
|
```
|
||||||
|
|
|
@ -7127,9 +7127,15 @@ class BaseCase(unittest.TestCase):
|
||||||
if "0:6053 " in message:
|
if "0:6053 " in message:
|
||||||
message = message.split("0:6053")[1]
|
message = message.split("0:6053")[1]
|
||||||
message = message.replace("\\u003C", "<")
|
message = message.replace("\\u003C", "<")
|
||||||
|
message = message.replace(" and should not be used", "")
|
||||||
if message.startswith(' "') and message.count('"') == 2:
|
if message.startswith(' "') and message.count('"') == 2:
|
||||||
message = message.split('"')[1]
|
message = message.split('"')[1]
|
||||||
|
if "but not found in any stylesheet" in message:
|
||||||
|
continue
|
||||||
|
if not is_windows:
|
||||||
message = "⚠️ " + message
|
message = "⚠️ " + message
|
||||||
|
else:
|
||||||
|
message = "!-> " + message # CMD prompt compatibility
|
||||||
if messenger_library not in message:
|
if messenger_library not in message:
|
||||||
if message not in results:
|
if message not in results:
|
||||||
results.append(message)
|
results.append(message)
|
||||||
|
|
Loading…
Reference in New Issue