History log of /PHP-8.2/ext/standard/tests/general_functions/phpinfo-header-anchors.phpt (Results 1 – 1 of 1)
Revision Date Author Comments
# 5c2c688c 08-Jul-2022 Ayesh Karunaratne

`phpinfo` HTML Output: Make module title names clickable and link to the URL fragment

Each section of `phpinfo` is titled with an `<h2><a name="module_NAME">NAME</a></h2>` tag. While the `na

`phpinfo` HTML Output: Make module title names clickable and link to the URL fragment

Each section of `phpinfo` is titled with an `<h2><a name="module_NAME">NAME</a></h2>` tag. While the `name=module_NAME` attribute allows linking to that section using a URL fragment (e.g `info.php#module_NAME`), it lacks discoverability because the `<a>` tag does not contain an `href` attribute. This is also highlighted in accessibility scans (in Firefox for instance).

This adds a link to the `<a>` tag that links to the URL fragment, fixing the accessibility remark and improving the discoverability of the clickable section titles. Also contains minor CSS changes to account for the dark theme CSS.

Closes GH-9054.

show more ...