Skip to content

Commit 332d2a3

Browse files
Aashay-Chapatwalasbrannen
authored andcommitted
Add title to SockJS iFrames for accessibility compliance
Closes gh-29594
1 parent 92b2b82 commit 332d2a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-websocket/src/main/java/org/springframework/web/socket/sockjs/support/AbstractSockJsService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2021 the original author or authors.
2+
* Copyright 2002-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -620,6 +620,7 @@ private class IframeHandler implements SockJsRequestHandler {
620620
"<head>\n" +
621621
" <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />\n" +
622622
" <meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />\n" +
623+
" <title>SocketJS iframe</title>\n" +
623624
" <script>\n" +
624625
" document.domain = document.domain;\n" +
625626
" _sockjs_onload = function(){SockJS.bootstrap_iframe();};\n" +

0 commit comments

Comments
 (0)