[WWWDOCS,COMMITTED] gcc-15: Fix HTML validation error

Message ID 20250212233950.2222320-1-sloosemore@baylibre.com
State New
Headers
Series [WWWDOCS,COMMITTED] gcc-15: Fix HTML validation error |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_simplebootstrap_build--master-arm-bootstrap fail Patch failed to apply
linaro-tcwg-bot/tcwg_gcc_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_simplebootstrap_build--master-aarch64-bootstrap fail Patch failed to apply
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 fail Patch failed to apply

Commit Message

Sandra Loosemore Feb. 12, 2025, 11:39 p.m. UTC
  It appears that bin/preprocess-html.py introduces HTML errors when an
<h1>...<h4> element contains a nested hyperlink.  My recent gcc-15 release
note changes passed validation when checked via file upload, but not after
commit via file link.  It seems the easiest fix is just to remove the
offending <a> element.
---
 htdocs/gcc-15/changes.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Comments

Gerald Pfeifer Feb. 25, 2025, 1:12 p.m. UTC | #1
On Wed, 12 Feb 2025, Sandra Loosemore wrote:
> It appears that bin/preprocess-html.py introduces HTML errors when an
> <h1>...<h4> element contains a nested hyperlink.  My recent gcc-15 release
> note changes passed validation when checked via file upload, but not after
> commit via file link.  It seems the easiest fix is just to remove the
> offending <a> element.

Indeed this looks like another instance of
  https://gcc.gnu.org/pipermail/gcc-patches/2025-February/675756.html

(Copying David.)

Gerald
  

Patch

diff --git a/htdocs/gcc-15/changes.html b/htdocs/gcc-15/changes.html
index 9359e562..7638d3d5 100644
--- a/htdocs/gcc-15/changes.html
+++ b/htdocs/gcc-15/changes.html
@@ -65,7 +65,7 @@  a work-in-progress.</p>
 <!-- .................................................................. -->
 <h2 id="languages">New Languages and Language specific improvements</h2>
 
-<h3 id="openmp"><a href="../projects/gomp/">OpenMP</a></h3>
+<h3 id="openmp">OpenMP</h3>
 <ul>
   <li>
     Support for unified-shared memory has been added for some AMD and Nvidia