[Koha-bugs] [Bug 34647] New: name attribute is obsolete in anchor tag

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 29 20:31:09 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34647

            Bug ID: 34647
           Summary: name attribute is obsolete in anchor tag
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Accessibility
          Assignee: martin.renvoize at ptfs-europe.com
          Reporter: fridolin.somers at biblibre.com
        QA Contact: testopia at bugs.koha-community.org
                CC: martin.renvoize at ptfs-europe.com,
                    matt.blenkinsop at ptfs-europe.com, oleonard at myacpl.org

Looks like since HTML5, attribute "name" on tag <a> is obsolete :
https://html.spec.whatwg.org/multipage/obsolete.html#obsolete-but-conforming-features

We have a few of them :
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt:                  
     <a name="[% supplier.booksellerid | html %]"
href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% supplier.booksellerid |
uri %]">
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt:                  
     <a name="[% supplier.booksellerid | html %]"
href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% supplier.booksellerid |
uri %]"></a>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt:                  
                                     <a name="viewnote" data-toggle="popover"
title="Note" data-content="[% note | html %]" data-placement="top"
data-trigger="hover">View note</a>
koha-tmpl/intranet-tmpl/prog/en/modules/reports/catalogue_out.tt:              
                 <h3><a name="summary" id="summary"></a>Summary</h3>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/marc_modification_templates.tt:  
                     <a name="modaction"></a>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt:                         
      <a name="newsitem[% koha_new.idnew | html %]"
href="/cgi-bin/koha/opac-main.pl?news_id=[% koha_new.idnew | uri %]">[%
koha_new.title | html %]</a>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt:                  
                                 [% IF loop.first %]<a
name="patron-attr-start-[% pa.type.code | html %]"></a>[% END %]

How should we replace ?
Some may be not uniq so can't be an id.

Maybe an accessibility issue.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list