Skip to content

Commit 5f29e68

Browse files
committed
validate html with strict set to false
1 parent 1a1800d commit 5f29e68

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/test/frontend/templates_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ void main() {
137137
},
138138
);
139139

140-
// TODO(https://github.com/dart-lang/pub-dev/issues/8385): reanble out commented tests.
140+
// TODO(https://github.com/dart-lang/pub-dev/issues/8385): enable out commented tests.
141141

142142
// testWithProfile(
143143
// 'package show page',

pkg/_pub_shared/lib/validation/html/html_validation.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ void parseAndValidateHtml(String html) {
1818
if (html.startsWith('<html>')) {
1919
html = '<!DOCTYPE html>\n$html';
2020
}
21-
validateHtml(parser.HtmlParser(html, strict: true).parse());
21+
// TODO(https://github.com/dart-lang/pub-dev/issues/8385): set `strict` to true
22+
validateHtml(parser.HtmlParser(html, strict: false).parse());
2223
}
2324

2425
/// Validates the parsed HTML content and throws AssertionError if any of the

0 commit comments

Comments
 (0)