Skip to content

Commit 1b3db57

Browse files
committed
Enable HTML validation in CI
Fix invalid or outdated HTML
1 parent c4257c4 commit 1b3db57

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+154
-94
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Build, Validate, Package & Publish
22

33
on: [push, pull_request, workflow_dispatch]
44

@@ -82,3 +82,20 @@ jobs:
8282
foreach ($file in (Get-ChildItem ${{ env.NuGetDirectory }} -Recurse -Include *.*nupkg)) {
8383
dotnet nuget push $file --skip-duplicate --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
8484
}
85+
86+
validate:
87+
name: Validate HTML and CSS
88+
runs-on: ubuntu-24.04
89+
steps:
90+
- name: Checkout HTML Renderer
91+
uses: actions/checkout@v6
92+
93+
- name: Validate HTML
94+
uses: anishathalye/proof-html@v2
95+
with:
96+
directory: ./Source
97+
check_html: true
98+
check_css: true
99+
check_favicon: false
100+
check_opengraph: false
101+
validator_ignore: '.*Use CSS instead.*|.*An “img” element must have an “alt” attribute.*|.*abcdef-data.*|.*“&” did not start a character reference.*'

Source/Demo/Common/PerfSamples/1.Big table.htm

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
1+
<!DOCTYPE html>
22
<html>
33
<head>
4-
<title></title>
4+
<title>Big table</title>
55
<style type="text/css">
66
* {
77
margin: 0;
@@ -3082,6 +3082,5 @@ <h2 style="color: #666666; margin: 0 0 0 0; font-weight: normal; font-size: 24px
30823082
</tr>
30833083
</tbody>
30843084
</table>
3085-
</div>
30863085
</body>
30873086
</html>

Source/Demo/Common/Samples/00.Intro.htm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<html>
23
<head>
34
<title>Intro</title>

Source/Demo/Common/Samples/01.History.htm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<html>
23
<head>
34
<link rel="Stylesheet" href="StyleSheet" />

Source/Demo/Common/Samples/02.Text.htm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<html>
1+
<!DOCTYPE html>
2+
<html>
23
<head>
34
<title>Text</title>
45
<link rel="Stylesheet" href="StyleSheet" />

Source/Demo/Common/Samples/03.Tables.htm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<html>
23
<head>
34
<title>Tables</title>

Source/Demo/Common/Samples/04.Links.htm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
<!DOCTYPE html>
12
<html>
23
<head>
34
<title>Links</title>
4-
<link rel="Stylesheet" href="StyleSheet" />
5+
<link rel="Stylesheet" href="StyleSheet">
56
</head>
67
<body>
78
<h1>Links

Source/Demo/Common/Samples/05.Images.htm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<html>
23
<head>
34
<title></title>

Source/Demo/Common/Samples/06.Embeded video.htm

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
<!DOCTYPE html>
12
<html>
23
<head>
3-
<link rel="Stylesheet" href="StyleSheet" />
4+
<title>Embeded video</title>
5+
<link rel="Stylesheet" href="StyleSheet">
46
</head>
57
<body>
68
<h1>
@@ -33,8 +35,8 @@ <h3>
3335
<h2>
3436
Example
3537
</h2>
36-
<iframe height="360" width="480" src="https://www.youtube.com/embed/2l_PmSOreGc" /><br /><br />
37-
<iframe height="270" width="480" src="https://player.vimeo.com/video/170338499" />
38+
<iframe height="360" width="480" src="https://www.youtube.com/embed/2l_PmSOreGc"></iframe><br /><br />
39+
<iframe height="270" width="480" src="https://player.vimeo.com/video/170338499"></iframe>
3840
</blockquote>
3941
</body>
4042
</html>

Source/Demo/Common/Samples/07.Additional features.htm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!DOCTYPE html>
12
<html>
23
<head>
34
<title>Additional features</title>

0 commit comments

Comments
 (0)