Skip to content

Commit

Permalink
Version 0.9.7
Browse files Browse the repository at this point in the history
  • Loading branch information
nzakas committed Mar 2, 2012
1 parent 906ab0a commit 757301b
Show file tree
Hide file tree
Showing 12 changed files with 68 additions and 48 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -247,6 +252,8 @@ June 15, 2011 - v0.1.0








2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
@@ -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" />
Expand Down
7 changes: 4 additions & 3 deletions lib/parserlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(){

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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)){
Expand Down Expand Up @@ -4121,6 +4121,7 @@ function PropertyValuePart(text, line, col){
case "in":
case "pt":
case "pc":
case "ch":
this.type = "length";
break;

Expand Down
15 changes: 8 additions & 7 deletions release/csslint-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(){

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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)){
Expand Down Expand Up @@ -4146,6 +4146,7 @@ function PropertyValuePart(text, line, col){
case "in":
case "pt":
case "pc":
case "ch":
this.type = "length";
break;

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
}
}
Expand Down
15 changes: 8 additions & 7 deletions release/csslint-rhino.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(){

/*!
Expand All @@ -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(){

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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)){
Expand Down Expand Up @@ -4147,6 +4147,7 @@ function PropertyValuePart(text, line, col){
case "in":
case "pt":
case "pc":
case "ch":
this.type = "length";
break;

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions release/csslint-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


}));

})();
Expand Down
15 changes: 8 additions & 7 deletions release/csslint-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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(){

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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)){
Expand Down Expand Up @@ -4146,6 +4146,7 @@ function PropertyValuePart(text, line, col){
case "in":
case "pt":
case "pc":
case "ch":
this.type = "length";
break;

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
}
}
Expand Down
15 changes: 8 additions & 7 deletions release/csslint-wsh.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(){

/*!
Expand All @@ -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(){

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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)){
Expand Down Expand Up @@ -4147,6 +4147,7 @@ function PropertyValuePart(text, line, col){
case "in":
case "pt":
case "pc":
case "ch":
this.type = "length";
break;

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
}
}
Expand Down
15 changes: 8 additions & 7 deletions release/csslint.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(){

/*!
Expand All @@ -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(){

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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)){
Expand Down Expand Up @@ -4147,6 +4147,7 @@ function PropertyValuePart(text, line, col){
case "in":
case "pt":
case "pc":
case "ch":
this.type = "length";
break;

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
}
}
Expand Down
Loading

0 comments on commit 757301b

Please sign in to comment.