Bug Tracker

Opened 9 years ago

Closed 9 years ago

#15199 closed bug (wontfix)

Bug in Chrome, no show Syntax error

Reported by: cuadove Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.11.1
Keywords: Cc:
Blocked by: Blocking:


This code works in Chrome Correctly (My version: 36.0.1985.125 m) instead of: "Error: Syntax error, unrecognized expression: input[name=test_name"

<!DOCTYPE html>
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>

            <input type="text" name="test_name" value="hi!" />

            var ready = $("input[name=test_name]");
            var error = $("input[name=test_name");

Change History (1)

comment:1 Changed 9 years ago by gibson042

Resolution: wontfix
Status: newclosed

Yes, that is a bug in Chrome: https://codereview.chromium.org/320783002/ (or more specifically, a problem with the CSS spec in that it allows implicit closing of strings/brackets/etc.). Sizzle and jQuery are more strict, but we always try the native engine first so these just slip under our radar.


Note: See TracTickets for help on using tickets.