diff mbox series

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

Message ID alpine.LSU.2.21.1806021349060.5519@anthias.pfeifer.com
State New
Headers show
Series [wwwdocs] Replace <a name=...> by id= attributes | expand

Commit Message

Gerald Pfeifer June 2, 2018, 11:52 a.m. UTC
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

Comments

Gerald Pfeifer June 2, 2018, 9:54 p.m. UTC | #1
On Sat, 2 Jun 2018, Gerald Pfeifer wrote:
> 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.

Hmpf, I missed that id attributes have to start with a letter; 
fixed thusly for the GCC8 pages.  I'll take care of the others
later.

Committed.

Gerald

Index: changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-8/changes.html,v
retrieving revision 1.86
diff -u -r1.86 changes.html
--- changes.html	2 Jun 2018 21:16:18 -0000	1.86
+++ changes.html	2 Jun 2018 21:50:38 -0000
@@ -1286,7 +1286,7 @@
 
 
 <!-- .................................................................. -->
-<h2 id="8.1">GCC 8.1</h2>
+<h2 id="GCC8.1">GCC 8.1</h2>
 
 <p>This is the <a href="https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&amp;resolution=FIXED&amp;target_milestone=8.0">list
 of problem reports (PRs)</a> from GCC's bug tracking system that are
Index: index.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-8/index.html,v
retrieving revision 1.4
diff -u -r1.4 index.html
--- index.html	2 Jun 2018 21:16:18 -0000	1.4
+++ index.html	2 Jun 2018 21:50:38 -0000
@@ -22,7 +22,7 @@
 <dl>
 
 <dt>GCC 8.1</dt>
-<dd id="7.1">May 2, 2018
+<dd id="GCC8.1">May 2, 2018
     (<a href="changes.html">changes</a>,
      <a href="http://gcc.gnu.org/onlinedocs/8.1.0/">documentation</a>)
 </dd>
Gerald Pfeifer June 10, 2018, 2:10 p.m. UTC | #2
On Sat, 2 Jun 2018, Gerald Pfeifer wrote:
> Hmpf, I missed that id attributes have to start with a letter; 
> fixed thusly for the GCC8 pages.  I'll take care of the others
> later.

Done thusly.

Committed.

Gerald

Index: gcc-6/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-6/changes.html,v
retrieving revision 1.104
diff -u -r1.104 changes.html
--- gcc-6/changes.html	2 Jun 2018 21:16:17 -0000	1.104
+++ gcc-6/changes.html	10 Jun 2018 14:06:28 -0000
@@ -858,7 +858,7 @@
   </ul>
 
 <!-- .................................................................. -->
-<h1 id="6.2">GCC 6.2</h1>
+<h1 id="GCC6.2">GCC 6.2</h1>
 
 <p>This is the <a href="https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&amp;resolution=FIXED&amp;target_milestone=6.2">list
 of problem reports (PRs)</a> from GCC's bug tracking system that are
@@ -876,7 +876,7 @@
     <li>Support for the VIS 4.0 instruction set has been added.</li>
   </ul>
 
-<h1 id="6.3">GCC 6.3</h1>
+<h1 id="GCC6.3">GCC 6.3</h1>
 
 <p>This is the <a href="https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&amp;resolution=FIXED&amp;target_milestone=6.3">list
 of problem reports (PRs)</a> from GCC's bug tracking system that are
@@ -893,7 +893,7 @@
     pcommit instruction</a> has been removed.</li>
   </ul>
 
-<h1 id="6.4">GCC 6.4</h1>
+<h1 id="GCC6.4">GCC 6.4</h1>
 
 <p>This is the <a href="https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&amp;resolution=FIXED&amp;target_milestone=6.4">list
 of problem reports (PRs)</a> from GCC's bug tracking system that are
@@ -910,7 +910,7 @@
 
 <!-- .................................................................. -->
 <!--
-<h1 id="6.5">GCC 6.5</h1>
+<h1 id="GCC6.5">GCC 6.5</h1>
 
 <p>This is the <a href="https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&amp;resolution=FIXED&amp;target_milestone=6.5">list
 of problem reports (PRs)</a> from GCC's bug tracking system that are
Index: gcc-7/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-7/changes.html,v
retrieving revision 1.105
diff -u -r1.105 changes.html
--- gcc-7/changes.html	2 Jun 2018 21:16:18 -0000	1.105
+++ gcc-7/changes.html	10 Jun 2018 14:06:28 -0000
@@ -1271,7 +1271,7 @@
 are not listed here).</p>
 
 <!-- .................................................................. -->
-<h2 id="7.2">GCC 7.2</h2>
+<h2 id="GCC7.2">GCC 7.2</h2>
 
 <p>This is the <a href="https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&amp;resolution=FIXED&amp;target_milestone=7.2">list
 of problem reports (PRs)</a> from GCC's bug tracking system that are
@@ -1312,7 +1312,7 @@
    </ul>
 
 <!-- .................................................................. -->
-<h2 id="7.3">GCC 7.3</h2>
+<h2 id="GCC7.3">GCC 7.3</h2>
 
 <p>This is the <a href="https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&amp;resolution=FIXED&amp;target_milestone=7.3">list
 of problem reports (PRs)</a> from GCC's bug tracking system that are
Gerald Pfeifer June 10, 2018, 2:26 p.m. UTC | #3
...plus one I had missed.

Gerald

Index: gcc-7/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-7/changes.html,v
retrieving revision 1.106
diff -u -r1.106 changes.html
--- gcc-7/changes.html	10 Jun 2018 14:12:46 -0000	1.106
+++ gcc-7/changes.html	10 Jun 2018 14:17:44 -0000
@@ -1262,7 +1262,7 @@
   </li>
 </ul>
 
-<h2 id="7.1">GCC 7.1</h2>
+<h2 id="GCC7.1">GCC 7.1</h2>
 
 <p>This is the <a href="https://gcc.gnu.org/bugzilla/buglist.cgi?bug_status=RESOLVED&amp;resolution=FIXED&amp;target_milestone=7.0">list
 of problem reports (PRs)</a> from GCC's bug tracking system that are
Gerald Pfeifer June 10, 2018, 2:30 p.m. UTC | #4
On Sun, 10 Jun 2018, Gerald Pfeifer wrote:
>> Hmpf, I missed that id attributes have to start with a letter; 
>> fixed thusly for the GCC8 pages.  I'll take care of the others
>> later.
> Done thusly.

And in fact, not much point in having this for the table of contents
on the main release pages, so simplify those for current release series
as follows.

Applied as well.

Gerald

Index: gcc-6/index.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-6/index.html,v
retrieving revision 1.9
diff -u -r1.9 index.html
--- gcc-6/index.html	2 Jun 2018 21:16:17 -0000	1.9
+++ gcc-6/index.html	10 Jun 2018 14:13:40 -0000
@@ -22,25 +22,25 @@
 <dl>
 
 <dt>GCC 6.4</dt>
-<dd id="6.4">July 4, 2017
+<dd>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 id="6.3">December 21, 2016
+<dd>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 id="6.2">August 22, 2016
+<dd>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 id="6.1">April 27, 2016
+<dd>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/index.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-7/index.html,v
retrieving revision 1.7
diff -u -r1.7 index.html
--- gcc-7/index.html	2 Jun 2018 21:16:18 -0000	1.7
+++ gcc-7/index.html	10 Jun 2018 14:13:40 -0000
@@ -22,19 +22,19 @@
 <dl>
 
 <dt>GCC 7.3</dt>
-<dd id="7.3">Jan 25, 2018
+<dd>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 id="7.2">Aug 14, 2017
+<dd>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 id="7.1">May 2, 2017
+<dd>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/index.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-8/index.html,v
retrieving revision 1.5
diff -u -r1.5 index.html
--- gcc-8/index.html	2 Jun 2018 21:51:00 -0000	1.5
+++ gcc-8/index.html	10 Jun 2018 14:13:40 -0000
@@ -22,7 +22,7 @@
 <dl>
 
 <dt>GCC 8.1</dt>
-<dd id="GCC8.1">May 2, 2018
+<dd>May 2, 2018
     (<a href="changes.html">changes</a>,
      <a href="http://gcc.gnu.org/onlinedocs/8.1.0/">documentation</a>)
 </dd>
diff mbox series

Patch

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&amp;resolution=FIXED&amp;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&amp;resolution=FIXED&amp;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&amp;resolution=FIXED&amp;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&amp;resolution=FIXED&amp;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&amp;resolution=FIXED&amp;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&amp;resolution=FIXED&amp;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&amp;resolution=FIXED&amp;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&amp;resolution=FIXED&amp;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>