Bug Tracker

Ticket #6624 (closed enhancement: invalid)

Opened 4 years ago

Last modified 4 years ago

add filter selector partial

Reported by: wmdbm Owned by:
Priority: undecided Milestone:
Component: selector Version: 1.4.2
Keywords: new filter Cc: wmdbm@…
Blocking: Blocked by:

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~&circ;=fmt]").val("news Format!");

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

exemple jQuery code

type === "~=" ?

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

type === "~&circ;=" ?

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

type === "~$=" ?

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

Change History

comment:1 Changed 4 years ago by snover

  • Milestone 1.4.3 deleted

Resetting milestone to future.

comment:2 Changed 4 years ago by dmethvin

  • Priority set to undecided
  • Status changed from new to closed
  • Resolution set to invalid

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

Note: See TracTickets for help on using tickets.