Sha256: 049910c29cacb55ad5be64845527e75329ed64ed1d8bb949694ca9e23410d6af

Contents?: true

Size: 1.4 KB

Versions: 1

Compression:

Stored size: 1.4 KB

Contents

# This rule is taken from https://github.com/stubbornella/csslint/tree/master/src/rules
#
#
# Copyright (c) 2011 Nicole Sullivan and Nicholas C. Zakas. All rights reserved.
# TODO: Paste the CSSLint LICENSE here.
#
#
# /*
#  * Rule: Headings (h1-h6) should not be qualified (namespaced).
#  */
# /*global CSSLint*/
# CSSLint.addRule({
# 
#     //rule information
#     id: "qualified-headings",
#     name: "Disallow qualified headings",
#     desc: "Headings should not be qualified (namespaced).",
#     browsers: "All",
# 
#     //initialization
#     init: function(parser, reporter){
#         var rule = this;
# 
#         parser.addListener("startrule", function(event){
#             var selectors = event.selectors,
#                 selector,
#                 part,
#                 i, j;
# 
#             for (i=0; i < selectors.length; i++){
#                 selector = selectors[i];
# 
#                 for (j=0; j < selector.parts.length; j++){
#                     part = selector.parts[j];
#                     if (part.type == parser.SELECTOR_PART_TYPE){
#                         if (part.elementName && /h[1-6]/.test(part.elementName.toString()) && j > 0){
#                             reporter.report("Heading (" + part.elementName + ") should not be qualified.", part.line, part.col, rule);
#                         }
#                     }
#                 }
#             }
#         });
#     }
# 
# });

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sasslint-0.0.1 lib/sasslint/rules/css/qualified-headings.rb