[wwwdocs] Replace <a name=...> by id= attributes

Gerald Pfeifer gerald@pfeifer.com
Sat Jun 2 11:52:00 GMT 2018


As I mentioned, I'm working to transition our pages to HTML which
should not be too hard after my transition to CSS over the past years,
but there are some changes we still need to account for.

In HTML 5 the <a name="..."...</a> approach has been superseded by 
the use of id attributes.

This implements this change for all pages associated with active
releases.

Applied.

Gerald

Index: gcc-6/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-6/changes.html,v
retrieving revision 1.102
diff -u -r1.102 changes.html
--- gcc-6/changes.html	4 Jul 2017 07:26:28 -0000	1.102
+++ gcc-6/changes.html	2 Jun 2018 11:49:09 -0000
@@ -857,7 +857,7 @@
   </ul>
 
 <!-- .................................................................. -->
-<h1><a name="6.2">GCC 6.2</a></h1>
+<h1 id="6.2">GCC 6.2</h1>
 
 <p>This is the <a href="https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=6.2">list
 of problem reports (PRs)</a> from GCC's bug tracking system that are
@@ -875,7 +875,7 @@
     <li>Support for the VIS 4.0 instruction set has been added.</li>
   </ul>
 
-<h1><a name="6.3">GCC 6.3</a></h1>
+<h1 id="6.3">GCC 6.3</h1>
 
 <p>This is the <a href="https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=6.3">list
 of problem reports (PRs)</a> from GCC's bug tracking system that are
@@ -892,7 +892,7 @@
     pcommit instruction</a> has been removed.</li>
   </ul>
 
-<h1><a name="6.4">GCC 6.4</a></h1>
+<h1 id="6.4">GCC 6.4</h1>
 
 <p>This is the <a href="https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=6.4">list
 of problem reports (PRs)</a> from GCC's bug tracking system that are
@@ -909,7 +909,7 @@
 
 <!-- .................................................................. -->
 <!--
-<h1><a name="6.5">GCC 6.5</a></h1>
+<h1 id="6.5">GCC 6.5</h1>
 
 <p>This is the <a href="https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=6.5">list
 of problem reports (PRs)</a> from GCC's bug tracking system that are
Index: gcc-6/index.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-6/index.html,v
retrieving revision 1.7
diff -u -r1.7 index.html
--- gcc-6/index.html	4 Jul 2017 07:10:19 -0000	1.7
+++ gcc-6/index.html	2 Jun 2018 11:49:09 -0000
@@ -21,25 +21,25 @@
 <dl>
 
 <dt>GCC 6.4</dt>
-<dd><a name="6.4">July 4, 2017</a>
+<dd id="6.4">July 4, 2017
     (<a href="changes.html">changes</a>,
      <a href="http://gcc.gnu.org/onlinedocs/6.4.0/">documentation</a>)
 </dd>
 
 <dt>GCC 6.3</dt>
-<dd><a name="6.3">December 21, 2016</a>
+<dd id="6.3">December 21, 2016
     (<a href="changes.html">changes</a>,
      <a href="http://gcc.gnu.org/onlinedocs/6.3.0/">documentation</a>)
 </dd>
 
 <dt>GCC 6.2</dt>
-<dd><a name="6.2">August 22, 2016</a>
+<dd id="6.2">August 22, 2016
     (<a href="changes.html">changes</a>,
      <a href="http://gcc.gnu.org/onlinedocs/6.2.0/">documentation</a>)
 </dd>
 
 <dt>GCC 6.1</dt>
-<dd><a name="6.1">April 27, 2016</a>
+<dd id="6.1">April 27, 2016
     (<a href="changes.html">changes</a>,
      <a href="http://gcc.gnu.org/onlinedocs/6.1.0/">documentation</a>)
 </dd>
Index: gcc-7/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-7/changes.html,v
retrieving revision 1.103
diff -u -r1.103 changes.html
--- gcc-7/changes.html	21 May 2018 14:10:22 -0000	1.103
+++ gcc-7/changes.html	2 Jun 2018 11:49:10 -0000
@@ -1261,7 +1261,7 @@
   </li>
 </ul>
 
-<h2><a name="7.1">GCC 7.1</a></h2>
+<h2 id="7.1">GCC 7.1</h2>
 
 <p>This is the <a href="https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=7.0">list
 of problem reports (PRs)</a> from GCC's bug tracking system that are
@@ -1270,7 +1270,7 @@
 are not listed here).</p>
 
 <!-- .................................................................. -->
-<h2><a name="7.2">GCC 7.2</a></h2>
+<h2 id="7.2">GCC 7.2</h2>
 
 <p>This is the <a href="https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=7.2">list
 of problem reports (PRs)</a> from GCC's bug tracking system that are
@@ -1311,7 +1311,7 @@
    </ul>
 
 <!-- .................................................................. -->
-<h2><a name="7.3">GCC 7.3</a></h2>
+<h2 id="7.3">GCC 7.3</h2>
 
 <p>This is the <a href="https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=7.3">list
 of problem reports (PRs)</a> from GCC's bug tracking system that are
Index: gcc-7/index.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-7/index.html,v
retrieving revision 1.5
diff -u -r1.5 index.html
--- gcc-7/index.html	25 Jan 2018 08:11:49 -0000	1.5
+++ gcc-7/index.html	2 Jun 2018 11:49:10 -0000
@@ -21,19 +21,19 @@
 <dl>
 
 <dt>GCC 7.3</dt>
-<dd><a name="7.3">Jan 25, 2018</a>
+<dd id="7.3">Jan 25, 2018
     (<a href="changes.html">changes</a>,
      <a href="http://gcc.gnu.org/onlinedocs/7.3.0/">documentation</a>)
 </dd>
 
 <dt>GCC 7.2</dt>
-<dd><a name="7.2">Aug 14, 2017</a>
+<dd id="7.2">Aug 14, 2017
     (<a href="changes.html">changes</a>,
      <a href="http://gcc.gnu.org/onlinedocs/7.2.0/">documentation</a>)
 </dd>
 
 <dt>GCC 7.1</dt>
-<dd><a name="7.1">May 2, 2017</a>
+<dd id="7.1">May 2, 2017
     (<a href="changes.html">changes</a>,
      <a href="http://gcc.gnu.org/onlinedocs/7.1.0/">documentation</a>)
 </dd>
Index: gcc-8/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-8/changes.html,v
retrieving revision 1.84
diff -u -r1.84 changes.html
--- gcc-8/changes.html	25 May 2018 18:13:17 -0000	1.84
+++ gcc-8/changes.html	2 Jun 2018 11:49:11 -0000
@@ -1285,7 +1285,7 @@
 
 
 <!-- .................................................................. -->
-<h2><a name="8.1">GCC 8.1</a></h2>
+<h2 id="8.1">GCC 8.1</h2>
 
 <p>This is the <a href="https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&resolution=FIXED&target_milestone=8.0">list
 of problem reports (PRs)</a> from GCC's bug tracking system that are
Index: gcc-8/index.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-8/index.html,v
retrieving revision 1.2
diff -u -r1.2 index.html
--- gcc-8/index.html	2 May 2018 10:21:15 -0000	1.2
+++ gcc-8/index.html	2 Jun 2018 11:49:11 -0000
@@ -21,7 +21,7 @@
 <dl>
 
 <dt>GCC 8.1</dt>
-<dd><a name="7.1">May 2, 2018</a>
+<dd id="7.1">May 2, 2018
     (<a href="changes.html">changes</a>,
      <a href="http://gcc.gnu.org/onlinedocs/8.1.0/">documentation</a>)
 </dd>
Index: gcc-9/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-9/changes.html,v
retrieving revision 1.4
diff -u -r1.4 changes.html
--- gcc-9/changes.html	2 Jun 2018 09:21:26 -0000	1.4
+++ gcc-9/changes.html	2 Jun 2018 11:49:11 -0000
@@ -142,7 +142,7 @@
 
 
 <!-- .................................................................. -->
-<!-- <h2><a name="9.1">GCC 9.1</a></h2> -->
+<!-- <h2 id="9.1">GCC 9.1</h2> -->
 
 </body>
 </html>



More information about the Gcc-patches mailing list