phpEd reporting css attribute selectors with an error |
Site Admin
|
As far as I see CSS selector that you entered is not correct.
Probably you meant input[class~='txt_'] { instead of input[class^='txt_'] { and CSE would't find such errors, you're right |
||||||||||||
_________________ The PHP IDE team |
|
The class~= indicator, I believe, is for matching a string in any part of the css selector:
a[href~="donkey"] - would match any a href link with the word donkey in it others are: a[href$="pdf"] - matchs an href that ENDS in pdf a[href^="http://"] - matchs an href that STARTS with http:// a[href*="hello"] - matchs an href that has hello somewhere in it |
||||||||||||
|
Site Admin
|
all those variants are defined in CSS v3 standard which is not widely supported these days.
|
||||||||||||
_________________ The PHP IDE team |
|
hmm .. in 2.1 we've:
http://www.w3.org/TR/CSS21/selector.html#attribute-selectors all these are supported by phped. further more
are indeed css3 selectors http://www.w3.org/TR/css3-selectors/#attribute-substrings ie7 doesn't support it, ok. so some webdevelopers may not know it, ok. but we've ie8 now and ... and ... excuse me ? even firefox 1.5 did "[attr^=val]" -.- arr ... k, later on. but by the way - what about having the css 2.1 pseudo selectors in our code suggestion popup, when we enter "#selector-xy" and press ":" , instead of suggesting html-tags (which is strange, because "tag:tag" makes no sense) ? ;O) [edit] and ... did you ever try to edit a css file with hacks in it, or humm ... look at this:
i like phped to help me, even if the css isn't valid in its eyes. by the way the example above is valid, according to jigsaw & the rfc. (whip me if im wrong =) [/edit] [edit 2] IE7 supports all the selectors we're talking about... http://www.google.com/search?q=css3+ie7 Looks like i'm stupid >.< [/edit 2] |
||||||||||||||||||
|
|
Is there planned support for CSS3 in the future? I just found that this code doesn't get recognized either:
|
||||||||||||||
|
phpEd reporting css attribute selectors with an error |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by