Uploaded image for project: 'MusicBrainz Server'
  1. MusicBrainz Server
  2. MBS-6440

Opening filter fails due to syntax error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 2013-07-08
    • 2013-05-27
    • Misc features
    • None

      Opening Filter menu from anywhere it is possible fails with following JavaScript error.

      Error: Syntax error, unrecognized expression: <table>
          
          
          <tr>
              <td style="white-space:nowrap">Artist credit:</td>
              <td><select id="id-filter.artist_credit_id" name="filter.artist_credit_id" style="max-width: 40em">
              <option selected="selected"> </option>
              <option value="813230">Cat on Mushroom</option>
              <option value="818969">DJ Jörg on Mushroom</option>
              <option value="953130">Datsik & Infected Mushroom feat. Jonathan Davis</option>
              <!-- some more output -->
          </select></td>
          </tr>
          
          <tr>
              <td>Name:</td>
              <td><input class="" id="id-filter.name" name="filter.name" size="47" type="text" value="" /></td>
          </tr>
          <tr>
              <td></td>
              <td><span class="buttons">
                  <button type="submit" class="submit positive">Filter recordings</button>
                  <button type="submit" name="filter.cancel" value="1" class="submit negative">Cancel</button>
              </span></td>
          </tr>
      </table> @ https://musicbrainz.org/static/18fcac402650a6a7472411fc8e719fd3.js:123
      

      Note: Error trimmed to reduce visual clutter.

      Reproduction:

      1. Go to any page which allows you to open the filter menu (make sure it's closed before loading the page). A good example is a page for any artist.
      2. Open the filter menu by clicking of "Filter" link.
      3. Depending on browser gray container for menu might or might not appear, but the filter menu definitely will not appear.

      Tested on:
      Firefox 24.0a1
      Chrome(-ium) 29.0.1521.3 (Official Build 202710)

            bitmap Michael Wiencek
            nagisa Simonas
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Version Package
                2013-07-08