Bug Tracker

Opened 10 years ago

Closed 10 years ago

#12691 closed bug (notabug)

Attribute Starts With Selector

Reported by: biancama Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:


if the string contains ':' the selector doesn't return null For example <a href="mailto:[email protected]…">email</a>

$('a[href=mailto:]') return null $('a[href=mailto]') return the <a>

Instead in version v1.3.2 it worked

Change History (1)

comment:1 Changed 10 years ago by dmethvin

Resolution: notabug
Status: newclosed

You should quote any attribute value that contains special characters, e.g. 'a[href="mailto:"]'

Note: See TracTickets for help on using tickets.