Skip to content

Commit

Permalink
Feat(global): link to HTTPS urls (closes #749)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoscaceres committed Jun 8, 2016
1 parent d6936e4 commit 4a24b88
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 58 deletions.
2 changes: 1 addition & 1 deletion js/core/jquery-enhanced.js
Expand Up @@ -61,7 +61,7 @@ define(["jquery","core/utils", "core/pubsubhub"], function($, utils, pubsubhub)
// allow @title for backward compatibility
titleString = this.attr("title");
theAttr = "title";
pubsubhub.pub("warn", "Using deprecated attribute @title for '" + this.text() + "': see http://w3.org/respec/guide.html#definitions-and-linking");
pubsubhub.pub("warn", "Using deprecated attribute @title for '" + this.text() + "': see https://w3.org/respec/guide.html#definitions-and-linking");
} else if (this.contents().length == 1 && this.children("abbr, acronym").length == 1 && this.find(":first-child").attr("title")) {
titleString = this.find(":first-child").attr("title");
} else {
Expand Down
2 changes: 1 addition & 1 deletion js/shortcut.js
@@ -1,5 +1,5 @@
/**
* http://www.openjs.com/scripts/events/keyboard_shortcuts/
* www.openjs.com/scripts/events/keyboard_shortcuts/
* Version : 2.01.B
* By Binny V A
* License : BSD
Expand Down
2 changes: 1 addition & 1 deletion js/ui/about-respec.js
Expand Up @@ -8,7 +8,7 @@ define(
return {
show: function (ui) {
var $halp = $("<div><p>ReSpec is a document production toolchain, with a notable focus on W3C specifications.</p></div>");
$("<p>You can find more information in the <a href='http://w3.org/respec/'>documentation</a>.</p>").appendTo($halp);
$("<p>You can find more information in the <a href='https://w3.org/respec/'>documentation</a>.</p>").appendTo($halp);
$("<p>Found a bug in ReSpec? <a href='https://github.com/w3c/respec/issues'>File it!</a>.</p>").appendTo($halp);
ui.freshModal("About ReSpec", $halp);
}
Expand Down
4 changes: 2 additions & 2 deletions js/ui/save-html.js
Expand Up @@ -207,9 +207,9 @@ define(
else if (mode !== 5) {
if (conf.doRDFa) {
// use the standard RDFa 1.1 doctype
str += " PUBLIC '-//W3C//DTD XHTML+RDFa 1.1//EN' 'http://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd'";
str += " PUBLIC '-//W3C//DTD XHTML+RDFa 1.1//EN' 'https://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd'";
} else {
str += " PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'";
str += " PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'";
}
}
str += ">\n<html";
Expand Down
24 changes: 12 additions & 12 deletions js/w3c/headers.js
Expand Up @@ -76,11 +76,11 @@
// - subjectPrefix: the string that is expected to be used as a subject prefix when posting to the mailing
// list of the group.
// - otherLinks: an array of other links that you might want in the header (e.g., link github, twitter, etc).
// Example of usage: [{key: "foo", href:"http://b"}, {key: "bar", href:"http://"}].
// Example of usage: [{key: "foo", href:"https://b"}, {key: "bar", href:"https://"}].
// Allowed values are:
// - key: the key for the <dt> (e.g., "Bug Tracker"). Required.
// - value: The value that will appear in the <dd> (e.g., "GitHub"). Optional.
// - href: a URL for the value (e.g., "http://foo.com/issues"). Optional.
// - href: a URL for the value (e.g., "https://foo.com/issues"). Optional.
// - class: a string representing CSS classes. Optional.
// - license: can be one of the following
// - "w3c", currently the default (restrictive) license
Expand All @@ -90,7 +90,7 @@
// intended to be pushed to the WHATWG.
// - "w3c-software", a permissive and attributions license (but GPL-compatible).
// - "w3c-software-doc", the W3C Software and Document License
// http://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
// https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document

"use strict";
define(
Expand Down Expand Up @@ -281,22 +281,22 @@ define(
cc0: {
name: "Creative Commons 0 Public Domain Dedication",
short: "CC0",
url: "http://creativecommons.org/publicdomain/zero/1.0/",
url: "https://creativecommons.org/publicdomain/zero/1.0/",
},
"w3c-software": {
name: "W3C Software Notice and License",
short: "W3C Software",
url: "http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231",
url: "https://www.w3.org/Consortium/Legal/2002/copyright-software-20021231",
},
"w3c-software-doc": {
name: "W3C Software and Document Notice and License",
short: "W3C Software and Document",
url: "http://www.w3.org/Consortium/Legal/2015/copyright-software-and-document",
url: "https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document",
},
"cc-by": {
name: "Creative Commons Attribution 4.0 International Public License",
short: "CC-BY",
url: "http://creativecommons.org/licenses/by/4.0/legalcode",
url: "https://creativecommons.org/licenses/by/4.0/legalcode",
}
}
, run: function (conf, doc, cb) {
Expand Down Expand Up @@ -342,14 +342,14 @@ define(
var publishSpace = "TR";
if (conf.specStatus === "Member-SUBM") publishSpace = "Submission";
else if (conf.specStatus === "Team-SUBM") publishSpace = "TeamSubmission";
if (conf.isRegular) conf.thisVersion = "http://www.w3.org/" + publishSpace + "/" +
if (conf.isRegular) conf.thisVersion = "https://www.w3.org/" + publishSpace + "/" +
conf.publishDate.getFullYear() + "/" +
conf.maturity + "-" + conf.shortName + "-" +
utils.concatDate(conf.publishDate) + "/";
if (conf.specStatus === "ED") conf.thisVersion = conf.edDraftURI;
if (conf.isRegular) conf.latestVersion = "http://www.w3.org/" + publishSpace + "/" + conf.shortName + "/";
if (conf.isRegular) conf.latestVersion = "https://www.w3.org/" + publishSpace + "/" + conf.shortName + "/";
if (conf.isTagFinding) {
conf.latestVersion = "http://www.w3.org/2001/tag/doc/" + conf.shortName;
conf.latestVersion = "https://www.w3.org/2001/tag/doc/" + conf.shortName;
conf.thisVersion = conf.latestVersion + "-" + utils.concatDate(conf.publishDate, "-");
}
if (conf.previousPublishDate) {
Expand All @@ -369,7 +369,7 @@ define(
conf.prevVersion = "";
}
else {
conf.prevVersion = "http://www.w3.org/TR/" + conf.previousPublishDate.getFullYear() + "/" + pmat + "-" +
conf.prevVersion = "https://www.w3.org/TR/" + conf.previousPublishDate.getFullYear() + "/" + pmat + "-" +
conf.shortName + "-" + utils.concatDate(conf.previousPublishDate) + "/";
}
}
Expand All @@ -378,7 +378,7 @@ define(
pubsubhub.pub("error", "Document on track but no previous version: Add previousMaturity previousPublishDate to ReSpec's config.");
if (!conf.prevVersion) conf.prevVersion = "";
}
if (conf.prevRecShortname && !conf.prevRecURI) conf.prevRecURI = "http://www.w3.org/TR/" + conf.prevRecShortname;
if (conf.prevRecShortname && !conf.prevRecURI) conf.prevRecURI = "https://www.w3.org/TR/" + conf.prevRecShortname;
if (!conf.editors || conf.editors.length === 0) pubsubhub.pub("error", "At least one editor is required");
var peopCheck = function (it) {
if (!it.name) pubsubhub.pub("error", "All authors and editors must have a name.");
Expand Down
6 changes: 3 additions & 3 deletions js/w3c/l10n.js
Expand Up @@ -17,7 +17,7 @@ define(
, authors: "Authors:"
, abstract: "Abstract"
, sotd: "Status of This Document"
, status_at_publication: "This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the <a href='http://www.w3.org/TR/'>W3C technical reports index</a> at http://www.w3.org/TR/."
, status_at_publication: "This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the <a href='https://www.w3.org/TR/'>W3C technical reports index</a> at https://www.w3.org/TR/."
, toc: "Table of Contents"
, note: "Note"
, fig: "Fig. "
Expand All @@ -37,7 +37,7 @@ define(
, authors: "저자:"
, abstract: "요약"
, sotd: "현재 문서의 상태"
, status_at_publication: "This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the <a href='http://www.w3.org/TR/'>W3C technical reports index</a> at http://www.w3.org/TR/."
, status_at_publication: "This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the <a href='https://www.w3.org/TR/'>W3C technical reports index</a> at https://www.w3.org/TR/."
, toc: "Table of Contents"
, note: "Note"
, fig: "그림 "
Expand All @@ -57,7 +57,7 @@ define(
, authors: "Authors:"
, abstract: "摘要"
, sotd: "关于本文档"
, status_at_publication: "本章节描述了本文档的发布状态。其它更新版本可能会覆盖本文档。W3C的文档列 表和最新版本可通过<a href='http://www.w3.org/TR/'>W3C技术报告</a>索引访问。"
, status_at_publication: "本章节描述了本文档的发布状态。其它更新版本可能会覆盖本文档。W3C的文档列 表和最新版本可通过<a href='https://www.w3.org/TR/'>W3C技术报告</a>索引访问。"
, toc: "内容大纲"
, note: "注"
, fig: "圖"
Expand Down
8 changes: 4 additions & 4 deletions js/w3c/templates/cgbg-headers.html
@@ -1,6 +1,6 @@
<div class='head'>
<p>
<a class='logo' href='http://www.w3.org/'><img width='72' height='48' src='https://www.w3.org/StyleSheets/TR/2016/logos/W3C' alt='W3C'></a>
<a class='logo' href='https://www.w3.org/'><img width='72' height='48' src='https://www.w3.org/StyleSheets/TR/2016/logos/W3C' alt='W3C'></a>
</p>
<h1 class='title p-name' id='title'{{#if doRDFa}} property='dc:title'{{/if}}>{{title}}</h1>
{{#if subtitle}}
Expand Down Expand Up @@ -96,16 +96,16 @@ <h2>{{longStatus}} <time {{#if doRDFa}}property="dc:issued"{{/if}}class='dt-publ
</p>
{{/if}}
<p class='copyright'>
<a href='http://www.w3.org/Consortium/Legal/ipr-notice#Copyright'>Copyright</a> &copy;
<a href='https://www.w3.org/Consortium/Legal/ipr-notice#Copyright'>Copyright</a> &copy;
{{#if copyrightStart}}{{copyrightStart}}-{{/if}}{{publishYear}}
the Contributors to the {{title}} Specification, published by the
<a href='{{wgURI}}'>{{wg}}</a> under the
{{#if isCGFinal}}
<a href="https://www.w3.org/community/about/agreements/fsa/">W3C Community Final Specification Agreement (FSA)</a>.
A human-readable <a href="http://www.w3.org/community/about/agreements/fsa-deed/">summary</a> is available.
A human-readable <a href="https://www.w3.org/community/about/agreements/fsa-deed/">summary</a> is available.
{{else}}
<a href="https://www.w3.org/community/about/agreements/cla/">W3C Community Contributor License Agreement (CLA)</a>.
A human-readable <a href="http://www.w3.org/community/about/agreements/cla-deed/">summary</a> is available.
A human-readable <a href="https://www.w3.org/community/about/agreements/cla-deed/">summary</a> is available.
{{/if}}
</p>
<hr title="Separator for header">
Expand Down
4 changes: 2 additions & 2 deletions js/w3c/templates/cgbg-sotd.html
Expand Up @@ -12,7 +12,7 @@
there is a limited opt-out and other conditions apply.
{{/if}}
Learn more about
<a href="http://www.w3.org/community/">W3C Community and Business Groups</a>.
<a href="https://www.w3.org/community/">W3C Community and Business Groups</a>.
</p>
{{#unless sotdAfterWGinfo}}
{{{sotdCustomParagraph}}}
Expand All @@ -22,7 +22,7 @@
<a href='mailto:{{wgPublicList}}@w3.org{{#if subjectPrefix}}?subject={{subjectPrefixEnc}}{{/if}}'>{{wgPublicList}}@w3.org</a>
(<a href='mailto:{{wgPublicList}}-request@w3.org?subject=subscribe'>subscribe</a>,
<a
href='http://lists.w3.org/Archives/Public/{{wgPublicList}}/'>archives</a>){{#if subjectPrefix}}
href='https://lists.w3.org/Archives/Public/{{wgPublicList}}/'>archives</a>){{#if subjectPrefix}}
with <code>{{subjectPrefix}}</code> at the start of your
email's subject{{/if}}.</p>
{{/if}}
Expand Down
32 changes: 16 additions & 16 deletions js/w3c/templates/headers.html
Expand Up @@ -4,12 +4,12 @@
{{showLogos logos}}
{{else}}
{{#if prependW3C}}
<a class='logo' href='http://www.w3.org/'><img width='72' height='48' src='https://www.w3.org/StyleSheets/TR/2016/logos/W3C' alt='W3C'></a>
<a class='logo' href='https://www.w3.org/'><img width='72' height='48' src='https://www.w3.org/StyleSheets/TR/2016/logos/W3C' alt='W3C'></a>
{{#if isMemberSubmission}}
<a href="http://www.w3.org/Submission/"> <img height="48" width="211" alt="W3C Member Submission" src="http://www.w3.org/Icons/member_subm" /></a>
<a href="https://www.w3.org/Submission/"> <img height="48" width="211" alt="W3C Member Submission" src="https://www.w3.org/Icons/member_subm" /></a>
{{/if}}
{{#if isTeamSubmission}}
<a href="http://www.w3.org/TeamSubmission/"><img height="48" width="211" alt="W3C Team Submission" src="http://www.w3.org/Icons/team_subm"/></a>
<a href="https://www.w3.org/TeamSubmission/"><img height="48" width="211" alt="W3C Team Submission" src="https://www.w3.org/Icons/team_subm"/></a>
{{/if}}
{{/if}}
{{/if}}
Expand Down Expand Up @@ -123,7 +123,7 @@ <h2>{{#if prependW3C}}W3C {{/if}}{{textStatus}} <time {{#if doRDFa}}property="dc
{{#if isRec}}
<p>
The English version of this specification is the only normative version. Non-normative
<a href="http://www.w3.org/Consortium/Translation/">translations</a> may also be available.
<a href="https://www.w3.org/Consortium/Translation/">translations</a> may also be available.
</p>
{{/if}}
{{#if isUnofficial}}
Expand All @@ -135,7 +135,7 @@ <h2>{{#if prependW3C}}W3C {{/if}}{{textStatus}} <time {{#if doRDFa}}property="dc
{{else}}
<p class='copyright'>
This document is licensed under a
<a class='subfoot' href='http://creativecommons.org/licenses/by/3.0/' rel='license'>Creative Commons
<a class='subfoot' href='https://creativecommons.org/licenses/by/3.0/' rel='license'>Creative Commons
Attribution 3.0 License</a>.
</p>
{{/if}}
Expand All @@ -145,27 +145,27 @@ <h2>{{#if prependW3C}}W3C {{/if}}{{textStatus}} <time {{#if doRDFa}}property="dc
{{{overrideCopyright}}}
{{else}}
<p class='copyright'>
<a href='http://www.w3.org/Consortium/Legal/ipr-notice#Copyright'>Copyright</a> &copy;
<a href='https://www.w3.org/Consortium/Legal/ipr-notice#Copyright'>Copyright</a> &copy;
{{#if copyrightStart}}{{copyrightStart}}-{{/if}}{{publishYear}}
{{#if additionalCopyrightHolders}} {{{additionalCopyrightHolders}}} &amp;{{/if}}
<a href='http://www.w3.org/'><abbr title='World Wide Web Consortium'>W3C</abbr></a><sup>&reg;</sup>
(<a href='http://www.csail.mit.edu/'><abbr title='Massachusetts Institute of Technology'>MIT</abbr></a>,
<a href='http://www.ercim.eu/'><abbr title='European Research Consortium for Informatics and Mathematics'>ERCIM</abbr></a>,
<a href='http://www.keio.ac.jp/'>Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>).
<a href='https://www.w3.org/'><abbr title='World Wide Web Consortium'>W3C</abbr></a><sup>&reg;</sup>
(<a href='https://www.csail.mit.edu/'><abbr title='Massachusetts Institute of Technology'>MIT</abbr></a>,
<a href='https://www.ercim.eu/'><abbr title='European Research Consortium for Informatics and Mathematics'>ERCIM</abbr></a>,
<a href='http://www.keio.ac.jp/'>Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>).
{{#if isCCBY}}
Some Rights Reserved: this document is dual-licensed,
<a rel="license" href="https://creativecommons.org/licenses/by/3.0/">CC-BY</a> and
<a rel="license" href="http://www.w3.org/Consortium/Legal/copyright-documents">W3C Document License</a>.
<a rel="license" href="https://www.w3.org/Consortium/Legal/copyright-documents">W3C Document License</a>.
{{/if}}
W3C <a href='http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer'>liability</a>,
<a href='http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks'>trademark</a> and
W3C <a href='https://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer'>liability</a>,
<a href='https://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks'>trademark</a> and
{{#if isCCBY}}
<a rel="license" href='http://www.w3.org/Consortium/Legal/2013/copyright-documents-dual.html'>document use</a>
<a rel="license" href='https://www.w3.org/Consortium/Legal/2013/copyright-documents-dual.html'>document use</a>
{{else}}
{{#if isW3CSoftAndDocLicense}}
<a rel="license" href='http://www.w3.org/Consortium/Legal/2015/copyright-software-and-document'>permissive document license</a>
<a rel="license" href='https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document'>permissive document license</a>
{{else}}
<a rel="license" href='http://www.w3.org/Consortium/Legal/copyright-documents'>document use</a>
<a rel="license" href='https://www.w3.org/Consortium/Legal/copyright-documents'>document use</a>
{{/if}}
{{/if}}
rules apply.
Expand Down

0 comments on commit 4a24b88

Please sign in to comment.