Skip to content

Commit

Permalink
USAGOV-1336-W3C-Markup-Validation-Errors: The type attribute is unnec…
Browse files Browse the repository at this point in the history
…essary for JavaScript resources.
  • Loading branch information
cwacht committed Oct 4, 2024
1 parent 3b552ab commit fc036b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions web/themes/custom/usagov/templates/html.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@
<!-- Needed_for_USA.gov_uptime_check -->

{% if lang == "en" %}
<script type="text/javascript">
<script>
//<![CDATA[
var usasearch_config = { siteHandle:"usagov_all_gov" };
var script = document.createElement("script");
Expand All @@ -221,7 +221,7 @@
//]]>
</script>
{% elseif lang == "es" %}
<script type="text/javascript">
<script>
//<![CDATA[
var usasearch_config = { siteHandle:"usagov_es_internal" };
var script = document.createElement("script");
Expand All @@ -231,7 +231,7 @@
//]]>
</script>
{% endif %}
<script type="text/javascript">
<script>
// Set a variable for our button element.
const scrollToTopButton = document.getElementById('back-to-top');
Expand Down Expand Up @@ -274,7 +274,7 @@ const scrollToTop = () => {
</script>

<!-- siteimprove usability -->
<script type="text/javascript">
<script>
/*<![CDATA[*/
(function() {
var sz = document.createElement('script'); sz.type = 'text/javascript'; sz.async = true;
Expand All @@ -286,7 +286,7 @@ const scrollToTop = () => {
<!-- end siteimprove usability -->

<!-- begin code to remove tabindex from survey -->
<script type="text/javascript">
<script>
document.querySelectorAll(".usa-accordion__content").forEach((accordionContent) => {
accordionContent.onbeforematch = () => {
//accordionContent.removeAttribute("hidden");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ This script applies the hidden attribute to the banner content.
This script is located here so that it can hide the content immediately without a noticable flash of content.
In the past, we added the hidden attribute in the HTML, but then it would be hidden even if javascript was disabled.
#}
<script type="text/javascript">
<script>
document.getElementById('gov-banner-default').setAttribute('hidden', 'until-found');
</script>

0 comments on commit fc036b5

Please sign in to comment.