Skip to search.
jslint_com · JSLint.com

Group Information

  • Members: 502
  • Category: JavaScript
  • Founded: Mar 7, 2008
  • Language: English
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Messages

  Messages Help
Advanced
Vendor extensions in pseudoclasses   Message List  
Reply Message #1280 of 2891 |
JSLint doesn't like vendor extensions in pseudo-selectors, even with
the `css` options toggled.

I'm thinking specifically of `button:-moz-focus-inner`, which I'm
finding necessary to standardize a 3px-padding in Gecko's rendering of
buttons that's otherwise impossible to get rid of ( see
http://stopdesign.com/archive/2009/02/04/recreating-the-button.html#comment-4379
). If you've got time to take a look, I'd like to see the following
snippet parse correctly:

@charset "UTF-8";
button::-moz-focus-inner {
padding: 0;
border-style: none;
}

I've hacked together a workaround in my local copy, but I think it's
something that ought be addressed upstream.

Thanks for taking a look!

-Mike



Mon Apr 26, 2010 1:01 pm

mikewest_y
Offline Offline
Send Email Send Email

Message #1280 of 2891 |
Expand Messages Author Sort by Date

JSLint doesn't like vendor extensions in pseudo-selectors, even with the `css` options toggled. I'm thinking specifically of `button:-moz-focus-inner`, which...
Mike West
mikewest_y Offline Send Email
Apr 26, 2010
1:02 pm

I disagree. Vendor specific CSS extensions are generally bad practice with regards to conformance and efficient of CSS payload size. The Mozilla specific...
Cheney, Edward A SSG ...
sandyhead25 Offline Send Email
Apr 26, 2010
8:08 pm

On Mon, Apr 26, 2010 at 10:08 PM, Cheney, Edward A SSG RES USAR USARC ... 1. How do you feel about `img { -ms-interpolation-mode: bicubic; }`? How about...
Mike West
mikewest_y Offline Send Email
Apr 26, 2010
9:53 pm

There are several different rendering engines available on the web. They each process presentation differently even when in full conformance to the...
Cheney, Edward A SSG ...
sandyhead25 Offline Send Email
Apr 27, 2010
8:55 am

On Tue, Apr 27, 2010 at 10:55 AM, Cheney, Edward A SSG RES USAR USARC ... Quite true. This, however, is an argument against expending too much effort in...
Mike West
mikewest_y Offline Send Email
Apr 27, 2010
10:02 am

I see value in a lint tool for CSS that could be triggered to accept / reject vendor-specific rendering rules, and a second trigger to accept / reject the...
Rob Richardson
erobrich Offline Send Email
Apr 27, 2010
3:42 pm

... I understand that, and also see value in concentrating effort on the areas in which JSLint most clearly shows value. I wasn't expecting to get into an...
Mike West
mikewest_y Offline Send Email
Apr 27, 2010
4:19 pm

"between ." came from "between style tags" except I conveyed it as markup. The markup apparently got trimmed by my email program. What a wonderful world where...
Rob Richardson
erobrich Offline Send Email
Apr 27, 2010
4:44 pm

... I'm surprised to hear you say that these only run on linux, as I am able to do command-line validation of CSS and HTML on Windows and Mac as well. Great...
Noah Sussman
thefangmonster Online Now Send Email
Apr 28, 2010
1:25 am

JSLint reports that anonymous functions such as this: var f = function(args) { // body } would be better like this: var f = function (args) { // body } Why is...
Rob Richardson
erobrich Offline Send Email
May 1, 2010
5:31 pm

... It is for readability. It makes it clearer that you are creating a function and not calling a function. Also, you forgot the semicolon....
Douglas Crockford
douglascrock... Offline Send Email
May 1, 2010
7:23 pm

That is not an anonymous function. The follow two are identical. var f = function () { // body }; function f () { // body } In both cases you are assigning a...
Cheney, Edward A SSG ...
sandyhead25 Offline Send Email
May 2, 2010
9:56 pm

Identical? Have you ever heard the expression "not always right, but never in doubt"? What should the following show? var f = function () { }; function g() { ...
Michael Lorton
mlorton Online Now Send Email
May 2, 2010
10:08 pm

Michael, Your example is partially accurate, but consider the following: var f = function () {}; function g () {} if (typeof(f) === typeof(g)) { ...
Cheney, Edward A SSG ...
sandyhead25 Offline Send Email
May 4, 2010
4:23 am

$0.02: First, "the good parts" advocates the following form, as it illustrates the true nature of functions: 1. var fnOnClick = function (){ ... }; Others...
Michael Mikowski
z_mikowski Offline Send Email
May 10, 2010
3:31 pm

On Sun, May 2, 2010 at 2:56 PM, Cheney, Edward A SSG RES USAR USARC < ... expression. Consider the following: f(); function f () {} This works because function...
Marcel Duran
marcelduran Offline Send Email
May 3, 2010
12:33 am

I've typically used the keyword 'function' to denote that I'm creating a function. In quick testing, I find no way to call a function with the keyword...
Rob Richardson
erobrich Offline Send Email
May 3, 2010
4:06 pm

... (function (foo) { return foo; })('bar'); -- Noah Sussman Software Historian @noahsussman A foolish consistency is the hobgoblin of little minds      ...
Noah Sussman
thefangmonster Online Now Send Email
May 3, 2010
4:42 pm

You're creating it with 'function' then invoking it right away. Is there a similar way to use the keyword 'function' to call a previously defined function?...
Rob Richardson
erobrich Offline Send Email
May 3, 2010
10:42 pm
Advanced

Copyright © 2010 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines NEW - Help