Reproducing steps

      1. Go to the home page. 
      2. View page source for that page (no need to log in).
      3. The search portlet includes an element of the form

        <span class="" id="">

      Observed: The value for the attribute id is the empty string.
      Expected: The value for the attribute id shouldn't be empty or in that case not appear at all.
      According to the HTML specification by the W3C (

      The id attribute specifies its element's unique identifier (ID). The value must be unique amongst all the IDs in the element's home subtree and must contain at least one character. The value must not contain any space characters. (The boldface is mine.)

      Although there is no such requirement for the attribute class it might be preferable to avoid using it if empty. 

      Note: Having several html element with empty id attributes also leads to an accessibility failure due to having several elements sharing the same id value. See




            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created:
                Days since last comment:
                1 year, 12 weeks, 2 days ago