Permalink
Browse files

Version 0.9.7

  • Loading branch information...
1 parent 906ab0a commit 757301beb9ba2022aa9f140816c38127f9a2ade1 @nzakas nzakas committed Mar 2, 2012
View
@@ -1,3 +1,8 @@
+March 2, 2012 - v0.9.7
+
+* Fix unqualified attribute issue (fixes #237) (Nicholas C. Zakas)
+
+
February 10, 2012 - v0.9.6
* Make sure line numbers are correct for vendor-prefix rule (fixes #238) (Nicholas C. Zakas)
@@ -241,6 +246,8 @@ June 15, 2011 - v0.1.0
+
+
View
@@ -1,7 +1,7 @@
<project name="csslint" default="build.all">
<!-- version number -->
- <property name="csslint.version" value="0.9.6" />
+ <property name="csslint.version" value="0.9.7" />
<!-- the directories containing the source files -->
<property name="src.dir" value="./src" />
View
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.5, Build time: 10-February-2012 12:59:26 */
+/* Version v0.1.6, Build time: 2-March-2012 02:44:32 */
var parserlib = {};
(function(){
@@ -931,7 +931,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.5, Build time: 10-February-2012 12:59:26 */
+/* Version v0.1.6, Build time: 2-March-2012 02:44:32 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -3179,7 +3179,7 @@ Parser.prototype = function(){
while(true){
- if (readMargins && this._margin()){
+ if (tokenStream.match(Tokens.SEMICOLON) || (readMargins && this._margin())){
//noop
} else if (this._declaration()){
if (!tokenStream.match(Tokens.SEMICOLON)){
@@ -4121,6 +4121,7 @@ function PropertyValuePart(text, line, col){
case "in":
case "pt":
case "pc":
+ case "ch":
this.type = "length";
break;
View
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Build time: 10-February-2012 02:34:15 */
+/* Build time: 2-March-2012 02:47:11 */
/*!
Parser-Lib
@@ -46,7 +46,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.5, Build time: 10-February-2012 12:59:26 */
+/* Version v0.1.6, Build time: 2-March-2012 02:44:32 */
var parserlib = {};
(function(){
@@ -956,7 +956,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.5, Build time: 10-February-2012 12:59:26 */
+/* Version v0.1.6, Build time: 2-March-2012 02:44:32 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -3204,7 +3204,7 @@ Parser.prototype = function(){
while(true){
- if (readMargins && this._margin()){
+ if (tokenStream.match(Tokens.SEMICOLON) || (readMargins && this._margin())){
//noop
} else if (this._declaration()){
if (!tokenStream.match(Tokens.SEMICOLON)){
@@ -4146,6 +4146,7 @@ function PropertyValuePart(text, line, col){
case "in":
case "pt":
case "pc":
+ case "ch":
this.type = "length";
break;
@@ -6304,7 +6305,7 @@ var CSSLint = (function(){
formatters = [],
api = new parserlib.util.EventTarget();
- api.version = "0.9.6";
+ api.version = "0.9.7";
//-------------------------------------------------------------------------
// Rule Management
@@ -8478,8 +8479,8 @@ CSSLint.addRule({
if (part.type == parser.SELECTOR_PART_TYPE){
for (k=0; k < part.modifiers.length; k++){
modifier = part.modifiers[k];
- if (modifier.type == "attribute" && (!modifier.elementName || modifier.elementName == "*")){
- reporter.report(rule.desc, modifier.line, modifier.col, rule);
+ if (modifier.type == "attribute" && (!part.elementName || part.elementName == "*")){
+ reporter.report(rule.desc, part.line, part.col, rule);
}
}
}
View
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Build time: 10-February-2012 02:34:15 */
+/* Build time: 2-March-2012 02:47:11 */
var CSSLint = (function(){
/*!
@@ -47,7 +47,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.5, Build time: 10-February-2012 12:59:26 */
+/* Version v0.1.6, Build time: 2-March-2012 02:44:32 */
var parserlib = {};
(function(){
@@ -957,7 +957,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.5, Build time: 10-February-2012 12:59:26 */
+/* Version v0.1.6, Build time: 2-March-2012 02:44:32 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -3205,7 +3205,7 @@ Parser.prototype = function(){
while(true){
- if (readMargins && this._margin()){
+ if (tokenStream.match(Tokens.SEMICOLON) || (readMargins && this._margin())){
//noop
} else if (this._declaration()){
if (!tokenStream.match(Tokens.SEMICOLON)){
@@ -4147,6 +4147,7 @@ function PropertyValuePart(text, line, col){
case "in":
case "pt":
case "pc":
+ case "ch":
this.type = "length";
break;
@@ -6305,7 +6306,7 @@ var CSSLint = (function(){
formatters = [],
api = new parserlib.util.EventTarget();
- api.version = "0.9.6";
+ api.version = "0.9.7";
//-------------------------------------------------------------------------
// Rule Management
@@ -8479,8 +8480,8 @@ CSSLint.addRule({
if (part.type == parser.SELECTOR_PART_TYPE){
for (k=0; k < part.modifiers.length; k++){
modifier = part.modifiers[k];
- if (modifier.type == "attribute" && (!modifier.elementName || modifier.elementName == "*")){
- reporter.report(rule.desc, modifier.line, modifier.col, rule);
+ if (modifier.type == "attribute" && (!part.elementName || part.elementName == "*")){
+ reporter.report(rule.desc, part.line, part.col, rule);
}
}
}
View
@@ -1718,8 +1718,14 @@ background: -ms-linear-gradient(top, #1e5799 ,#2989d8 ,#207cca ,#7db9e8 );
"Using an unqualified attribute selector in the middle should not result in a warning": function(){
var result = CSSLint.verify("[type=text] .foo { font-size: 10px; } ", {"unqualified-attributes": 1 });
Assert.areEqual(0, result.messages.length);
+ },
+
+ "Using a qualified attribute selector should not result in a warning": function(){
+ var result = CSSLint.verify("input[type=text] { font-size: 10px; } ", {"unqualified-attributes": 1 });
+ Assert.areEqual(0, result.messages.length);
}
+
}));
})();
View
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Build time: 10-February-2012 02:34:15 */
+/* Build time: 2-March-2012 02:47:11 */
/*!
Parser-Lib
@@ -46,7 +46,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.5, Build time: 10-February-2012 12:59:26 */
+/* Version v0.1.6, Build time: 2-March-2012 02:44:32 */
var parserlib = {};
(function(){
@@ -956,7 +956,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.5, Build time: 10-February-2012 12:59:26 */
+/* Version v0.1.6, Build time: 2-March-2012 02:44:32 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -3204,7 +3204,7 @@ Parser.prototype = function(){
while(true){
- if (readMargins && this._margin()){
+ if (tokenStream.match(Tokens.SEMICOLON) || (readMargins && this._margin())){
//noop
} else if (this._declaration()){
if (!tokenStream.match(Tokens.SEMICOLON)){
@@ -4146,6 +4146,7 @@ function PropertyValuePart(text, line, col){
case "in":
case "pt":
case "pc":
+ case "ch":
this.type = "length";
break;
@@ -6304,7 +6305,7 @@ var CSSLint = (function(){
formatters = [],
api = new parserlib.util.EventTarget();
- api.version = "0.9.6";
+ api.version = "0.9.7";
//-------------------------------------------------------------------------
// Rule Management
@@ -8478,8 +8479,8 @@ CSSLint.addRule({
if (part.type == parser.SELECTOR_PART_TYPE){
for (k=0; k < part.modifiers.length; k++){
modifier = part.modifiers[k];
- if (modifier.type == "attribute" && (!modifier.elementName || modifier.elementName == "*")){
- reporter.report(rule.desc, modifier.line, modifier.col, rule);
+ if (modifier.type == "attribute" && (!part.elementName || part.elementName == "*")){
+ reporter.report(rule.desc, part.line, part.col, rule);
}
}
}
View
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Build time: 10-February-2012 02:34:15 */
+/* Build time: 2-March-2012 02:47:11 */
var CSSLint = (function(){
/*!
@@ -47,7 +47,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.5, Build time: 10-February-2012 12:59:26 */
+/* Version v0.1.6, Build time: 2-March-2012 02:44:32 */
var parserlib = {};
(function(){
@@ -957,7 +957,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.5, Build time: 10-February-2012 12:59:26 */
+/* Version v0.1.6, Build time: 2-March-2012 02:44:32 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -3205,7 +3205,7 @@ Parser.prototype = function(){
while(true){
- if (readMargins && this._margin()){
+ if (tokenStream.match(Tokens.SEMICOLON) || (readMargins && this._margin())){
//noop
} else if (this._declaration()){
if (!tokenStream.match(Tokens.SEMICOLON)){
@@ -4147,6 +4147,7 @@ function PropertyValuePart(text, line, col){
case "in":
case "pt":
case "pc":
+ case "ch":
this.type = "length";
break;
@@ -6305,7 +6306,7 @@ var CSSLint = (function(){
formatters = [],
api = new parserlib.util.EventTarget();
- api.version = "0.9.6";
+ api.version = "0.9.7";
//-------------------------------------------------------------------------
// Rule Management
@@ -8479,8 +8480,8 @@ CSSLint.addRule({
if (part.type == parser.SELECTOR_PART_TYPE){
for (k=0; k < part.modifiers.length; k++){
modifier = part.modifiers[k];
- if (modifier.type == "attribute" && (!modifier.elementName || modifier.elementName == "*")){
- reporter.report(rule.desc, modifier.line, modifier.col, rule);
+ if (modifier.type == "attribute" && (!part.elementName || part.elementName == "*")){
+ reporter.report(rule.desc, part.line, part.col, rule);
}
}
}
View
@@ -21,7 +21,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Build time: 10-February-2012 02:34:15 */
+/* Build time: 2-March-2012 02:47:11 */
var CSSLint = (function(){
/*!
@@ -47,7 +47,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.5, Build time: 10-February-2012 12:59:26 */
+/* Version v0.1.6, Build time: 2-March-2012 02:44:32 */
var parserlib = {};
(function(){
@@ -957,7 +957,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
-/* Version v0.1.5, Build time: 10-February-2012 12:59:26 */
+/* Version v0.1.6, Build time: 2-March-2012 02:44:32 */
(function(){
var EventTarget = parserlib.util.EventTarget,
TokenStreamBase = parserlib.util.TokenStreamBase,
@@ -3205,7 +3205,7 @@ Parser.prototype = function(){
while(true){
- if (readMargins && this._margin()){
+ if (tokenStream.match(Tokens.SEMICOLON) || (readMargins && this._margin())){
//noop
} else if (this._declaration()){
if (!tokenStream.match(Tokens.SEMICOLON)){
@@ -4147,6 +4147,7 @@ function PropertyValuePart(text, line, col){
case "in":
case "pt":
case "pc":
+ case "ch":
this.type = "length";
break;
@@ -6305,7 +6306,7 @@ var CSSLint = (function(){
formatters = [],
api = new parserlib.util.EventTarget();
- api.version = "0.9.6";
+ api.version = "0.9.7";
//-------------------------------------------------------------------------
// Rule Management
@@ -8479,8 +8480,8 @@ CSSLint.addRule({
if (part.type == parser.SELECTOR_PART_TYPE){
for (k=0; k < part.modifiers.length; k++){
modifier = part.modifiers[k];
- if (modifier.type == "attribute" && (!modifier.elementName || modifier.elementName == "*")){
- reporter.report(rule.desc, modifier.line, modifier.col, rule);
+ if (modifier.type == "attribute" && (!part.elementName || part.elementName == "*")){
+ reporter.report(rule.desc, part.line, part.col, rule);
}
}
}
Oops, something went wrong.

0 comments on commit 757301b

Please sign in to comment.