Skip to main content

Bug Tracker

Side navigation

#6624 closed enhancement (invalid)

Opened June 02, 2010 01:53PM UTC

Closed November 15, 2010 03:38AM UTC

add filter selector partial

Reported by: wmdbm Owned by:
Priority: undecided Milestone:
Component: selector Version: 1.4.2
Keywords: new filter Cc: wmdbm@free.fr
Blocked by: Blocking:
Description

(traduction)

I propose a simple but very useful evolution.

Add two syntaxes of filter on attribute.

Thank you for announcing me your decision and the date of implementation.

(original)

je propose une évolution simple mais très utile.

ajouter deux syntaxes de filtre sur attribut.

merci de me faire part de votre décision et de la date de mise en place.

~= => keyword (existing)

~ˆ= => keyword begin (new)

~$= => keyword end(new)

exemple using code

<input type="text" name="a" class="blue fmttext typeok" />

<input type="text" name="b" class="blue fmtnum typebad" />

<input type="text" name="c" class="blue fmtdate styleok" />

<input type="text" name="d" class="blue stylebad" />

$("input:[class~ˆ=fmt]").val("news Format!");

$("input:[class~$=bad]").css("color","red");

exemple jQuery code

type === "~=" ?

(" " + value + " ").indexOf(" " + check + " ") >= 0 :

type === "~ˆ=" ?

(" " + value + " ").indexOf(" " + check) >= 0 :

type === "~$=" ?

(" " + value + " ").indexOf(check + " ") >= 0 :

Attachments (0)
Change History (2)

Changed November 12, 2010 02:40AM UTC by snover comment:1

milestone: 1.4.3

Resetting milestone to future.

Changed November 15, 2010 03:38AM UTC by dmethvin comment:2

priority: → undecided
resolution: → invalid
status: newclosed

We're not accepting new additions to the selector syntax and trying to stay with the standard W3C CSS syntax.