Skip to content

Commit 5cbe3e3

Browse files
committed
[DO NOT MERGE] make html5validator fail.
1 parent 465a6f4 commit 5cbe3e3

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

expected-validator.log

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ERROR:html5validator.validator:"file:src/main/webapp/WEB-INF/views/participant/add.html":172.3-172.12: info warning: Element name "th:block" cannot be represented as XML 1.0.
2+
"file:src/main/webapp/WEB-INF/views/participant/add.html":172.3-172.12: error: Element "th:block" not allowed as child of element "body" in this context. (Suppressing further errors from this subtree.)
3+
"file:src/main/webapp/WEB-INF/views/site/events.html":15.2-15.8: error: Element "head" is missing a required instance of child element "title".

src/main/webapp/WEB-INF/views/participant/add.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,10 @@ <h3 th:text="${#strings.capitalize(header)}">
169169
</div>
170170

171171
<!-- Placed at the end of the document so the pages load faster -->
172+
<th:block>
172173
<script src="http://yandex.st/jquery/1.9.1/jquery.min.js" th:src="${JQUERY_JS}"></script>
173174
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" th:src="${BOOTSTRAP_JS}"></script>
174175
<script src="../../../../javascript/participant/add.js" th:src="${PARTICIPANT_ADD_JS}"></script>
176+
</th:block>
175177
</body>
176178
</html>

src/main/webapp/WEB-INF/views/site/events.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
99
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
1010
<meta name="robots" content="noindex" />
11-
<title th:text="|#{t_my_stamps}: #{t_suspicious_activities}|">My stamps: suspicious activities</title>
1211
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.ico" th:href="${FAVICON_ICO}" />
1312
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" th:href="${BOOTSTRAP_CSS}" />
1413
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/usrz/bootstrap-languages@3ac2a3d2b27ac43a471cd99e79d378a03b2c6b5f/languages.min.css" th:href="${BOOTSTRAP_LANGUAGE}" />

0 commit comments

Comments
 (0)