https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101198

            Bug ID: 101198
           Summary: libstdc++-v3/doc/html/manual/policy_based_data_structu
                    res_test.html is not valid XHTML; fails DTD validation
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
  Target Milestone: ---

libstdc++-v3/doc/html/manual/policy_based_data_structures_test.html
has this:

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org
/TR/xhtml1/DTD/xhtml1-transitional.dtd">

In particular, that DTD has:

<!--
   To avoid accessibility problems for people who aren't
   able to see the image, you should provide a text
   description using the alt and longdesc attributes.
   In addition, avoid the use of server-side image maps.
-->

<!ELEMENT img EMPTY>
<!ATTLIST img
  %attrs;
  [...snip...]
  alt         %Text;         #REQUIRED   
  [...snip...]
  >

i.e. every <img> element is required to have an
  alt=""
attribute to be valid according to the DTD.

There are numerous img elements; none of them have alt attributes.

Is this file autogenerated from XML?  I'm not quite sure where the issue is.

Reply via email to