Commit ad6e236 1 parent b083b91 commit ad6e236 Copy full SHA for ad6e236
File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -427,9 +427,19 @@ <h2>{{ sponsor_level.level }}</h2>
427
427
calendarNodeInner = parser . parseFromString ( ouicalData [ name ] , "text/html" ) ;
428
428
calendarNodeSpan = document . createElement ( "span" ) ;
429
429
calendarNodeSpan . setAttribute ( "style" , "padding: 2px" ) ;
430
- calendarNodeSpan . appendChild ( document . createTextNode ( "[" ) ) ;
430
+
431
+ const openBracket = document . createElement ( "span" ) ;
432
+ openBracket . setAttribute ( "aria-hidden" , "true" ) ;
433
+ openBracket . innerHTML = "[" ;
434
+ calendarNodeSpan . appendChild ( openBracket ) ;
435
+
431
436
calendarNodeSpan . appendChild ( calendarNodeInner . getElementsByTagName ( "a" ) [ 0 ] ) ;
432
- calendarNodeSpan . appendChild ( document . createTextNode ( "]" ) ) ;
437
+
438
+ const closeBracket = document . createElement ( "span" ) ;
439
+ closeBracket . setAttribute ( "aria-hidden" , "true" ) ;
440
+ closeBracket . innerHTML = "]" ;
441
+ calendarNodeSpan . appendChild ( closeBracket ) ;
442
+
433
443
targetNode . appendChild ( calendarNodeSpan ) ;
434
444
}
435
445
{ % endfor % }
You can’t perform that action at this time.
0 commit comments