Skip to content

Commit 77fca45

Browse files
[6.x] Run the CP through the W3C validator (#13550)
Co-authored-by: Jason Varga <jason@pixelfear.com>
1 parent 38c28b8 commit 77fca45

File tree

8 files changed

+19
-20
lines changed

8 files changed

+19
-20
lines changed

.storybook/preview-head.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<link rel="preconnect" href="https://use.typekit.net" crossorigin>
77
<link rel="preconnect" href="https://p.typekit.net" crossorigin>
8-
<link rel="stylesheet" href="https://use.typekit.net/wyy0pka.css"/>
8+
<link rel="stylesheet" href="https://use.typekit.net/wyy0pka.css">
99

1010
<link rel="preconnect" href="https://fonts.googleapis.com">
1111
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>

resources/views/extend/forms/fields/hidden.antlers.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
type="hidden"
44
name="{{ name }}"
55
value="{{ value }}"
6-
/>
6+
>

resources/views/forms/automagic-email.antlers.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
{{ value | nl2br }}
2222
{{ /if }}
2323
{{ /if }}
24-
<br />
24+
<br>
2525
{{ /fields }}

resources/views/graphql/graphiql.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<!doctype html>
22
<html lang="en">
33
<head>
4-
<meta charset="UTF-8" />
5-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
66
<title>GraphiQL ‹ Statamic</title>
77
<style>
88
body {
@@ -25,11 +25,11 @@
2525
<link
2626
rel="stylesheet"
2727
href="https://esm.sh/graphiql@4.0.0/dist/style.css"
28-
/>
28+
>
2929
<link
3030
rel="stylesheet"
3131
href="https://esm.sh/@graphiql/plugin-explorer@4.0.0/dist/style.css"
32-
/>
32+
>
3333
<!-- Note: the ?standalone flag bundles the module along with all of its `dependencies`, excluding `peerDependencies`, into a single JavaScript file. -->
3434
<script type="importmap">
3535
{

resources/views/partials/favicon.antlers.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
type="image/png"
44
href="{{ glide :src="favicon_url" format="png" height="32" width="32" }}"
55
sizes="32x32"
6-
/>
6+
>
77
<link
88
rel="icon"
99
type="image/png"
1010
href="{{ glide :src="favicon_url" format="png" height="16" width="16" }}"
1111
sizes="16x16"
12-
/>
12+
>

resources/views/partials/head.blade.php

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22
use function Statamic\trans as __;
33
@endphp
44

5-
<meta charset="utf-8" />
6-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
7-
<meta name="viewport" content="width=device-width" />
8-
<meta name="robots" content="noindex,nofollow" />
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width">
7+
<meta name="robots" content="noindex,nofollow">
98
<meta name="color-scheme" content="{{ $user?->preferredColorMode() ?? 'auto' }}">
109

1110
@if (Statamic::pro() && config('statamic.cp.custom_favicon_url'))
1211
@include('statamic::partials.favicon', ['favicon_url' => config('statamic.cp.custom_favicon_url')])
1312
@else
14-
<link rel="icon" type="image/png" href="{{ Statamic::cpViteAsset('img/favicon-32x32.png') }}" sizes="32x32" />
15-
<link rel="icon" type="image/png" href="{{ Statamic::cpViteAsset('img/favicon-16x16.png') }}" sizes="16x16" />
13+
<link rel="icon" type="image/png" href="{{ Statamic::cpViteAsset('img/favicon-32x32.png') }}" sizes="32x32">
14+
<link rel="icon" type="image/png" href="{{ Statamic::cpViteAsset('img/favicon-16x16.png') }}" sizes="16x16">
1615
<link rel="apple-touch-icon" href="{{ Statamic::cpViteAsset('img/apple-touch-icon.png') }}">
1716
<link rel="shortcut icon" type="image/x-icon" href="{{ Statamic::cpViteAsset('img/favicon.ico') }}">
1817
@endif
@@ -33,16 +32,16 @@
3332
{{ Statamic::cpViteScripts() }}
3433
3534
@if (Statamic::pro() && config('statamic.cp.custom_css_url'))
36-
<link href="{{ config('statamic.cp.custom_css_url') }}?v={{ Statamic::version() }}" rel="stylesheet" />
35+
<link href="{{ config('statamic.cp.custom_css_url') }}?v={{ Statamic::version() }}" rel="stylesheet">
3736
@endif
3837
3938
@foreach (Statamic::availableExternalStyles(request()) as $url)
40-
<link href="{{ $url }}" rel="stylesheet" />
39+
<link href="{{ $url }}" rel="stylesheet">
4140
@endforeach
4241
4342
@foreach (Statamic::availableStyles(request()) as $package => $paths)
4443
@foreach ($paths as $path)
45-
<link href="{{ Statamic::vendorPackageAssetUrl($package, $path, 'css') }}" rel="stylesheet" />
44+
<link href="{{ Statamic::vendorPackageAssetUrl($package, $path, 'css') }}" rel="stylesheet">
4645
@endforeach
4746
@endforeach
4847

src/Tags/Theme.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function css()
102102
$url = $this->themeUrl($path);
103103

104104
if ($this->params->bool('tag')) {
105-
return '<link rel="stylesheet" href="'.$url.'" />';
105+
return '<link rel="stylesheet" href="'.$url.'">';
106106
}
107107

108108
return $url;

tests/Tags/ThemeTagsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function testOutputsNamedCssWithAppendedExtension()
8383
public function testOutputsCssTag()
8484
{
8585
$this->assertEquals(
86-
'<link rel="stylesheet" href="'.$this->path.'/css/style.css" />',
86+
'<link rel="stylesheet" href="'.$this->path.'/css/style.css">',
8787
$this->tag('{{ theme:css src="style" tag="true" }}')
8888
);
8989
}

0 commit comments

Comments
 (0)