diff --git a/src/Pages/BasePage.php b/src/Pages/BasePage.php index ff6b76f..ae5aa96 100644 --- a/src/Pages/BasePage.php +++ b/src/Pages/BasePage.php @@ -179,6 +179,7 @@ public function getPageOutput(): string { } // @codeCoverageIgnoreEnd $html = FluentHTML::fromTag( 'html' ) + ->setAttribute( 'lang', 'en' ) ->append( $this->head ) ->append( FluentHTML::make( 'body', [], $contents ) ) ->getHTML(); diff --git a/tests/data/Home.html b/tests/data/Home.html index f8a6a36..658806e 100644 --- a/tests/data/Home.html +++ b/tests/data/Home.html @@ -1,5 +1,5 @@ -Home
HomeRésuméOpen SourceWorkBlog

Home

Welcome to Daniel Scherzer's personal website. I am a software engineer with +Home

HomeRésuméOpen SourceWorkBlog

Home

Welcome to Daniel Scherzer's personal website. I am a software engineer with experience working in PHP, JavaScript, Python, C, and other languages.

I completed my undergraduate education at Tufts University, double majoring in Computer Science and Political Science and graduating magna cum laude in 2024 with a Bachelor of Science degree. As part of my work in Computer Science, I chose to write an honors thesis in my senior year, see here for details. I continued at Tufts for graduate school, graduating in 2025 with diff --git a/tests/data/Missing.html b/tests/data/Missing.html index 141e558..c297174 100644 --- a/tests/data/Missing.html +++ b/tests/data/Missing.html @@ -1,2 +1,2 @@ -Error

Error

The requested page `Missing` is not recognized

\ No newline at end of file +Error

Error

The requested page `Missing` is not recognized

\ No newline at end of file diff --git a/tests/data/NoPost.html b/tests/data/NoPost.html index 10fc30b..62394f4 100644 --- a/tests/data/NoPost.html +++ b/tests/data/NoPost.html @@ -1,2 +1,2 @@ -Error

Error

The requested page `Work` does not support the HTTP action `POST`. Allowed actions are: GET

\ No newline at end of file +Error

Error

The requested page `Work` does not support the HTTP action `POST`. Allowed actions are: GET

\ No newline at end of file diff --git a/tests/data/OpenSource.html b/tests/data/OpenSource.html index 4a50a8f..da70606 100644 --- a/tests/data/OpenSource.html +++ b/tests/data/OpenSource.html @@ -1,5 +1,5 @@ -Open source

Open source contributions

I contribute to open-source libraries on GitHub as @DanielEScherzer.

PHP

I started contributing to the PHP source in August 2024, working primarily on +Open source

Open source contributions

I contribute to open-source libraries on GitHub as @DanielEScherzer.

PHP

I started contributing to the PHP source in August 2024, working primarily on bug fixes, improvements to the Reflection extension and various cleanup. In March 2025, I requested and was granted access to make direct changes (and approve others' changes) to PHP. I also became the official maintainer of the reflection extension.

Also in March 2025, I volunteered to serve as one of the release managers for diff --git a/tests/data/Thesis.html b/tests/data/Thesis.html index 1493a80..28e48e9 100644 --- a/tests/data/Thesis.html +++ b/tests/data/Thesis.html @@ -1,5 +1,5 @@ -Thesis

Thesis

During my senior year as an undergraduate student at Tufts University, I chose +Thesis

Thesis

During my senior year as an undergraduate student at Tufts University, I chose to work on an honors thesis in the Computer Science department. The thesis is available online in the Tufts archives.

Abstract

A Turing machine is capable of computing anything that a modern computer can, but how? A high-level algorithm is fine as a demonstration, but the higher-level diff --git a/tests/data/Work.html b/tests/data/Work.html index ebf9e6d..6799024 100644 --- a/tests/data/Work.html +++ b/tests/data/Work.html @@ -1,5 +1,5 @@ -Work

Work experience

WikiTeq

I first joined WikiTeq in January 2023 as a Technical Project Manager, working +Work

Work experience

WikiTeq

I first joined WikiTeq in January 2023 as a Technical Project Manager, working with a team of developers around the world to support clients that use MediaWiki. As part of my work at WikiTeq, I have worked with multiple MediaWiki extensions, though most of them are private. My contributions made as part of diff --git a/tests/data/blog-highlighting.html b/tests/data/blog-highlighting.html index 5df8981..01c2d81 100644 --- a/tests/data/blog-highlighting.html +++ b/tests/data/blog-highlighting.html @@ -1,5 +1,5 @@ -Blog: Attributes on Constants

    +Blog: Attributes on Constants
      Table of contents
    1. (top)
    2. Background
    3. diff --git a/tests/data/blog-image.html b/tests/data/blog-image.html index 305f510..45bf8bd 100644 --- a/tests/data/blog-image.html +++ b/tests/data/blog-image.html @@ -1,5 +1,5 @@ -Blog: No PHP 8.5.0alpha3

      No PHP 8.5.0alpha3

      Friday, 01 August 2025 +Blog: No PHP 8.5.0alpha3

      No PHP 8.5.0alpha3

      Friday, 01 August 2025

      Yesterday, I announced the release of the last alpha version of PHP 8.5.0, labeled 8.5.0alpha4. This comes two weeks after the previous version, 8.5.0alpha2, was announced. So, what happened to 8.5.0alpha3?

      diff --git a/tests/data/blog-index.html b/tests/data/blog-index.html index 857711d..1c27822 100644 --- a/tests/data/blog-index.html +++ b/tests/data/blog-index.html @@ -1,5 +1,5 @@ -Blog index

      Blog index

      Longhorn PHP 2025

      Wednesday, 29 October 2025

      Last week, I attended the Longhorn PHP conference in Austin, Texas. I had the +Blog index

      Blog index

      Longhorn PHP 2025

      Wednesday, 29 October 2025

      Last week, I attended the Longhorn PHP conference in Austin, Texas. I had the opportunity to meet with a slew of open source contributors, listen to some amazing talks, and even present my own. Continue reading...

      Project Euler in Rust

      Friday, 19 September 2025

      After writing the obligatory "Hello, World!", I wanted to work on something more substantial in Rust. When I learn a new programming language, my go-to diff --git a/tests/data/blog-launch.html b/tests/data/blog-launch.html index 7bf620b..d66faa6 100644 --- a/tests/data/blog-launch.html +++ b/tests/data/blog-launch.html @@ -1,5 +1,5 @@ -Blog: Website Launch

      Website launch

      Wednesday, 09 April 2025 +Blog: Website Launch

      Website launch

      Wednesday, 09 April 2025

      Today, I launched the initial version of my personal website (where you are most likely reading this blog post). This marks the cumulation of over a month of preparation and development, because I wanted to create the website myself, diff --git a/tests/data/blog-missing.html b/tests/data/blog-missing.html index 258288b..deb7efa 100644 --- a/tests/data/blog-missing.html +++ b/tests/data/blog-missing.html @@ -1,2 +1,2 @@ -Blog: missing

      Error

      The requested blog post `missing` is not recognized

      \ No newline at end of file +Blog: missing

      Error

      The requested blog post `missing` is not recognized

      \ No newline at end of file diff --git a/tests/data/tools-dvorak.html b/tests/data/tools-dvorak.html index 6cfcadc..9a33871 100644 --- a/tests/data/tools-dvorak.html +++ b/tests/data/tools-dvorak.html @@ -1,2 +1,2 @@ -Tools

      Tool: dvorak

      \ No newline at end of file +Tools

      Tool: dvorak

      \ No newline at end of file diff --git a/tests/data/tools-index.html b/tests/data/tools-index.html index d8aa336..10a841a 100644 --- a/tests/data/tools-index.html +++ b/tests/data/tools-index.html @@ -1,3 +1,3 @@ -Tools

      Known tools

      These are just some JavaScript utilities for Daniel, though anyone who wants to +Tools

      Known tools

      These are just some JavaScript utilities for Daniel, though anyone who wants to is obviously free to use them.

      \ No newline at end of file diff --git a/tests/data/tools-missing.html b/tests/data/tools-missing.html index d6f9798..0e63ce3 100644 --- a/tests/data/tools-missing.html +++ b/tests/data/tools-missing.html @@ -1,3 +1,3 @@ -Tools

      Error

      The requested tool `missing` is not recognized

      Known tools

      These are just some JavaScript utilities for Daniel, though anyone who wants to +Tools

      Error

      The requested tool `missing` is not recognized

      Known tools

      These are just some JavaScript utilities for Daniel, though anyone who wants to is obviously free to use them.

      \ No newline at end of file