Opened 13 years ago
Closed 12 years ago
#6624 closed enhancement (invalid)
add filter selector partial
Reported by: | wmdbm | Owned by: | |
---|---|---|---|
Priority: | undecided | Milestone: | |
Component: | selector | Version: | 1.4.2 |
Keywords: | new filter | Cc: | [email protected]… |
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 :
Change History (2)
comment:1 Changed 12 years ago by
Milestone: | 1.4.3 |
---|
comment:2 Changed 12 years ago by
Priority: | → undecided |
---|---|
Resolution: | → invalid |
Status: | new → closed |
We're not accepting new additions to the selector syntax and trying to stay with the standard W3C CSS syntax.
Resetting milestone to future.