[Koha-bugs] [Bug 35157] New: The searchfieldstype select element produces invalid HTML

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Oct 25 22:53:02 CEST 2023


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

            Bug ID: 35157
           Summary: The searchfieldstype select element produces invalid
                    HTML
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Accessibility
          Assignee: martin.renvoize at ptfs-europe.com
          Reporter: lucas at bywatersolutions.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

Run any page that contains the "Search patrons" search bar through an HTML
validator and you will see a lot of:

Stray start tag span.
Stray end tag span.

This is because <option> tags contain spans. <span> is not a valid child
element of <option>

The HTML5 spec:

https://html.spec.whatwg.org/multipage/form-elements.html#the-option-element


There are essentially two options for what can be put inside an <option>
element:

1. Test
2. Nothing

These spans are added via the patronfields.inc

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


More information about the Koha-bugs mailing list