File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ pytest test_inspect_html.py
28
28
⚠️ ' property' is not a valid attribute of the < meta> element.
29
29
⚠️ Do not use < div> or < span> elements without any attributes.
30
30
⚠️ ' srcset' is not a valid attribute of the < img> element.
31
- ⚠️ The ' border' attribute is no longer valid on the < img> element and should not be used .
32
- ⚠️ The < center> element is obsolete and should not be used .
31
+ ⚠️ The ' border' attribute is no longer valid on the < img> element.
32
+ ⚠️ The < center> element is obsolete.
33
33
⚠️ The id ' comicLinks' appears more than once in the document.
34
34
* (See the Console output for details! )
35
35
```
Original file line number Diff line number Diff line change @@ -7127,9 +7127,15 @@ def inspect_html(self):
7127
7127
if "0:6053 " in message:
7128
7128
message = message.split("0:6053")[1]
7129
7129
message = message.replace("\\u003C", "<")
7130
+ message = message.replace(" and should not be used", "")
7130
7131
if message.startswith(' "') and message.count('"') == 2:
7131
7132
message = message.split('"')[1]
7132
- message = "⚠️ " + message
7133
+ if "but not found in any stylesheet" in message:
7134
+ continue
7135
+ if not is_windows:
7136
+ message = "⚠️ " + message
7137
+ else:
7138
+ message = "!-> " + message # CMD prompt compatibility
7133
7139
if messenger_library not in message:
7134
7140
if message not in results:
7135
7141
results.append(message)
You can’t perform that action at this time.
0 commit comments