Bug Tracker

Opened 7 years ago

Closed 7 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:

Description

if the string contains ':' the selector doesn't return null For example <a href="mailto:massimo.biancalani@…">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 7 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.