Skip to main content

Bug Tracker

Side navigation

#15215 closed bug (notabug)

Opened August 21, 2014 07:33AM UTC

Closed August 25, 2014 08:07PM UTC

Select on data attributes without value

Reported by: Linuus Owned by:
Priority: undecided Milestone: None
Component: selector Version: 1.11.1
Keywords: Cc:
Blocked by: Blocking:
Description

Hi

In 1.11.0 this works:

$('.foobar[data-foo-bar=]').length

But in 1.11.1 it throws an error:

Syntax error, unrecognized expression: .foobar[data-foo-bar=]

http://jsfiddle.net/wtfstx4j/

http://jsfiddle.net/3kmgshqo/

Is this the correct behavior?

Attachments (0)
Change History (1)

Changed August 25, 2014 08:07PM UTC by gibson042 comment:1

component: unfiledselector
resolution: → notabug
status: newclosed

1.11.1 behavior is correct; see #14793 and CSS Selectors.