Skip to content

Commit e811409

Browse files
committed
Use https when possible.
1 parent 260d62f commit e811409

File tree

8 files changed

+35
-35
lines changed

8 files changed

+35
-35
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"homepage": "https://github.com/CSSLint/parser-lib",
1111
"repository": {
1212
"type": "git",
13-
"url": "http://github.com/CSSLint/parser-lib.git"
13+
"url": "https://github.com/CSSLint/parser-lib.git"
1414
},
1515
"bugs": {
1616
"url": "https://github.com/CSSLint/parser-lib/issues"

src/css/Colors.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,9 @@ var Colors = module.exports = {
151151
whitesmoke :"#f5f5f5",
152152
yellow :"#ffff00",
153153
yellowgreen :"#9acd32",
154-
//'currentColor' color keyword http://www.w3.org/TR/css3-color/#currentcolor
154+
//'currentColor' color keyword https://www.w3.org/TR/css3-color/#currentcolor
155155
currentColor :"The value of the 'color' property.",
156-
//CSS2 system colors http://www.w3.org/TR/css3-color/#css2-system
156+
//CSS2 system colors https://www.w3.org/TR/css3-color/#css2-system
157157
activeBorder :"Active window border.",
158158
activecaption :"Active window caption.",
159159
appworkspace :"Background color of multiple document interface.",

src/css/Properties.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ var Properties = module.exports = {
148148
"color-interpolation-filters" : "auto | sRGB | linearRGB",
149149
"color-profile" : 1,
150150
"color-rendering" : "auto | optimizeSpeed | optimizeQuality",
151-
"column-count" : "<integer> | auto", //http://www.w3.org/TR/css3-multicol/
151+
"column-count" : "<integer> | auto", //https://www.w3.org/TR/css3-multicol/
152152
"column-fill" : "auto | balance",
153153
"column-gap" : "<length> | normal",
154154
"column-rule" : "<border-width> || <border-style> || <color>",
@@ -467,7 +467,7 @@ var Properties = module.exports = {
467467
"volume" : 1,
468468

469469
//W
470-
"white-space" : "normal | pre | nowrap | pre-wrap | pre-line | -pre-wrap | -o-pre-wrap | -moz-pre-wrap | -hp-pre-wrap", //http://perishablepress.com/wrapping-content/
470+
"white-space" : "normal | pre | nowrap | pre-wrap | pre-line | -pre-wrap | -o-pre-wrap | -moz-pre-wrap | -hp-pre-wrap", // https://perishablepress.com/wrapping-content/
471471
"white-space-collapse" : 1,
472472
"widows" : "<integer>",
473473
"width" : "<length> | <percentage> | <content-sizing> | auto",

src/css/Tokens.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var Tokens = module.exports = [
44

55
/*
6-
* The following token names are defined in CSS3 Grammar: http://www.w3.org/TR/css3-syntax/#lexical
6+
* The following token names are defined in CSS3 Grammar: https://www.w3.org/TR/css3-syntax/#lexical
77
*/
88

99
//HTML-style comments
@@ -62,7 +62,7 @@ var Tokens = module.exports = [
6262
{ name: "UNICODE_RANGE"},
6363

6464
/*
65-
* The following token names are defined in CSS3 Selectors: http://www.w3.org/TR/css3-selectors/#selector-syntax
65+
* The following token names are defined in CSS3 Selectors: https://www.w3.org/TR/css3-selectors/#selector-syntax
6666
*/
6767

6868
//invalid string
@@ -98,7 +98,7 @@ var Tokens = module.exports = [
9898
{ name: "RIGHTBOTTOM_SYM", text: "@right-bottom"},
9999

100100
/*
101-
* The following token names are defined in CSS3 Media Queries: http://www.w3.org/TR/css3-mediaqueries/#syntax
101+
* The following token names are defined in CSS3 Media Queries: https://www.w3.org/TR/css3-mediaqueries/#syntax
102102
*/
103103
/*{ name: "MEDIA_ONLY", state: "media"},
104104
{ name: "MEDIA_NOT", state: "media"},

src/css/ValidationTypes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ copy(ValidationTypes, {
153153

154154
"<content>": "content()",
155155

156-
// http://www.w3.org/TR/css3-sizing/#width-height-keywords
156+
// https://www.w3.org/TR/css3-sizing/#width-height-keywords
157157
"<content-sizing>":
158158
"fill-available | -moz-available | -webkit-fill-available | " +
159159
"max-content | -moz-max-content | -webkit-max-content | " +
@@ -352,7 +352,7 @@ copy(ValidationTypes, {
352352

353353
"<filter-function-list>": "[ <filter-function> | <uri> ]+",
354354

355-
// http://www.w3.org/TR/2014/WD-css-flexbox-1-20140325/#flex-property
355+
// https://www.w3.org/TR/2014/WD-css-flexbox-1-20140325/#flex-property
356356
"<flex>":
357357
"none | [ <flex-grow> <flex-shrink>? || <flex-basis> ]",
358358

tests/css/Parser.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1233,42 +1233,42 @@ var YUITest = require("yuitest"),
12331233

12341234
testURIValue: function(){
12351235
var parser = new Parser();
1236-
var result = parser.parsePropertyValue("url(http://www.yahoo.com)");
1236+
var result = parser.parsePropertyValue("url(https://yahoo.com)");
12371237

12381238
Assert.isInstanceOf(parserlib.css.PropertyValue, result);
12391239
Assert.areEqual(1, result.parts.length);
12401240
Assert.areEqual("uri", result.parts[0].type);
1241-
Assert.areEqual("http://www.yahoo.com", result.parts[0].uri);
1241+
Assert.areEqual("https://yahoo.com", result.parts[0].uri);
12421242
},
12431243

12441244
testURIValue2: function(){
12451245
var parser = new Parser();
1246-
var result = parser.parsePropertyValue("url('http://www.yahoo.com')");
1246+
var result = parser.parsePropertyValue("url('https://yahoo.com')");
12471247

12481248
Assert.isInstanceOf(parserlib.css.PropertyValue, result);
12491249
Assert.areEqual(1, result.parts.length);
12501250
Assert.areEqual("uri", result.parts[0].type);
1251-
Assert.areEqual("http://www.yahoo.com", result.parts[0].uri);
1251+
Assert.areEqual("https://yahoo.com", result.parts[0].uri);
12521252
},
12531253

12541254
testURIValue3: function(){
12551255
var parser = new Parser();
1256-
var result = parser.parsePropertyValue("url(\"http://www.yahoo.com\")");
1256+
var result = parser.parsePropertyValue("url(\"https://yahoo.com\")");
12571257

12581258
Assert.isInstanceOf(parserlib.css.PropertyValue, result);
12591259
Assert.areEqual(1, result.parts.length);
12601260
Assert.areEqual("uri", result.parts[0].type);
1261-
Assert.areEqual("http://www.yahoo.com", result.parts[0].uri);
1261+
Assert.areEqual("https://yahoo.com", result.parts[0].uri);
12621262
},
12631263

12641264
testURIValue4: function(){
12651265
var parser = new Parser();
1266-
var result = parser.parsePropertyValue("url(http\\03a\r\n//www.yahoo.com)");
1266+
var result = parser.parsePropertyValue("url(https\\03a\r\n//yahoo.com)");
12671267

12681268
Assert.isInstanceOf(parserlib.css.PropertyValue, result);
12691269
Assert.areEqual(1, result.parts.length);
12701270
Assert.areEqual("uri", result.parts[0].type);
1271-
Assert.areEqual("http://www.yahoo.com", result.parts[0].uri);
1271+
Assert.areEqual("https://yahoo.com", result.parts[0].uri);
12721272
},
12731273

12741274
testStringValue: function(){
@@ -1784,7 +1784,7 @@ var YUITest = require("yuitest"),
17841784
valid = false;
17851785
});
17861786

1787-
parser.parse("@document url(http://www.w3.org/) { p { color: red; } }");
1787+
parser.parse("@document url(https://www.w3.org/) { p { color: red; } }");
17881788
Assert.isTrue(valid);
17891789
},
17901790

@@ -1796,7 +1796,7 @@ var YUITest = require("yuitest"),
17961796
valid = false;
17971797
});
17981798

1799-
parser.parse("@document url-prefix(http://www.w3.org/) { p { color: red; } }");
1799+
parser.parse("@document url-prefix(https://www.w3.org/) { p { color: red; } }");
18001800
Assert.isTrue(valid);
18011801
},
18021802

@@ -1832,7 +1832,7 @@ var YUITest = require("yuitest"),
18321832
valid = false;
18331833
});
18341834

1835-
parser.parse("@document url-prefix(http://www.w3.org/), domain(w3.org) { p { color: red; } }");
1835+
parser.parse("@document url-prefix(https://www.w3.org/), domain(w3.org) { p { color: red; } }");
18361836
Assert.isTrue(valid);
18371837
},
18381838

@@ -2245,28 +2245,28 @@ var YUITest = require("yuitest"),
22452245
var parser = new Parser({ strict: true});
22462246
parser.addListener("import", function(event){
22472247
Assert.areEqual("import", event.type);
2248-
Assert.areEqual("http://www.yahoo.com", event.uri);
2248+
Assert.areEqual("https://yahoo.com", event.uri);
22492249
});
2250-
parser.parse("@import url(http://www.yahoo.com);");
2250+
parser.parse("@import url(https://yahoo.com);");
22512251
},
22522252

22532253

22542254
"Test @import uri with quotes": function(){
22552255
var parser = new Parser({ strict: true});
22562256
parser.addListener("import", function(event){
22572257
Assert.areEqual("import", event.type);
2258-
Assert.areEqual("http://www.yahoo.com", event.uri);
2258+
Assert.areEqual("https://yahoo.com", event.uri);
22592259
});
2260-
parser.parse("@import url('http://www.yahoo.com');");
2260+
parser.parse("@import url('https://yahoo.com');");
22612261
},
22622262

22632263
"Test @import address": function(){
22642264
var parser = new Parser();
22652265
parser.addListener("import", function(event){
22662266
Assert.areEqual("import", event.type);
2267-
Assert.areEqual("http://www.yahoo.com", event.uri);
2267+
Assert.areEqual("https://yahoo.com", event.uri);
22682268
});
2269-
parser.parse("@import 'http://www.yahoo.com';");
2269+
parser.parse("@import 'https://yahoo.com';");
22702270
}
22712271
}));
22722272

tests/css/TokenStream.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -410,13 +410,13 @@ var YUITest = require("yuitest"),
410410
"url('foo.jpg')" : [CSSTokens.URI],
411411
"url(\"foo.jpg\")" : [CSSTokens.URI],
412412

413-
"url(http://www.nczonline.net/favicon.ico)": [CSSTokens.URI],
414-
"url('http://www.nczonline.net/favicon.ico')": [CSSTokens.URI],
415-
"url(\"http://www.nczonline.net/favicon.ico\")":[CSSTokens.URI],
413+
"url(https://www.nczonline.net/favicon.ico)": [CSSTokens.URI],
414+
"url('https://www.nczonline.net/favicon.ico')": [CSSTokens.URI],
415+
"url(\"https://www.nczonline.net/favicon.ico\")":[CSSTokens.URI],
416416

417-
"url(http://www.nczonline.net/favicon.ico?a=b&c=d)": [CSSTokens.URI],
418-
"url('http://www.nczonline.net/favicon.ico?a=b&c=d')": [CSSTokens.URI],
419-
"url(\"http://www.nczonline.net/favicon.ico?a=b&c=d\")":[CSSTokens.URI],
417+
"url(https://www.nczonline.net/favicon.ico?a=b&c=d)": [CSSTokens.URI],
418+
"url('https://www.nczonline.net/favicon.ico?a=b&c=d')": [CSSTokens.URI],
419+
"url(\"https://www.nczonline.net/favicon.ico?a=b&c=d\")":[CSSTokens.URI],
420420

421421
//invalid URLs
422422
"url('booya\")" : [CSSTokens.FUNCTION, CSSTokens.INVALID],

tests/css/Validation.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,7 +1134,7 @@ var YUITest = require("yuitest"),
11341134

11351135
valid: [
11361136
"1",
1137-
// From http://www.w3.org/TR/2014/WD-css-flexbox-1-20140325/#flex-common
1137+
// From https://www.w3.org/TR/2014/WD-css-flexbox-1-20140325/#flex-common
11381138
"0 auto",
11391139
"0 1 auto",
11401140
"auto",
@@ -1187,7 +1187,7 @@ var YUITest = require("yuitest"),
11871187
property: prop_name,
11881188

11891189
valid: [
1190-
// from http://www.w3.org/TR/2014/WD-css-flexbox-1-20140325/#flex-flow-property
1190+
// from https://www.w3.org/TR/2014/WD-css-flexbox-1-20140325/#flex-flow-property
11911191
"row",
11921192
"column wrap",
11931193
"row-reverse wrap-reverse",

0 commit comments

Comments
 (0)