Skip to content

Commit ecf96db

Browse files
author
quietone
committed
Issue #3462868 by annmarysruthy, yujiman85, nexusnovaz, pierregermain, ankitv18, sheetal-wish, smustgrave, lostcarpark, rodrigoaguilera, ultimike: Replace url usage of http://www.w3.org with https://www.w3.org in core
1 parent 05e5bd9 commit ecf96db

File tree

54 files changed

+98
-98
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+98
-98
lines changed

core.link_relation_types.yml

+27-27
Original file line numberDiff line numberDiff line change
@@ -57,37 +57,37 @@ about:
5757
reference: '[RFC6903], section 2'
5858
alternate:
5959
description: 'Refers to a substitute for this context'
60-
reference: '[http://www.w3.org/TR/html5/links.html#link-type-alternate]'
60+
reference: '[https://www.w3.org/TR/html5/links.html#link-type-alternate]'
6161
appendix:
6262
description: 'Refers to an appendix.'
63-
reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
63+
reference: '[https://www.w3.org/TR/1999/REC-html401-19991224]'
6464
archives:
6565
description: "Refers to a collection of records, documents, or other materials of historical interest."
66-
reference: '[http://www.w3.org/TR/2011/WD-html5-20110113/links.html#rel-archives]'
66+
reference: '[https://www.w3.org/TR/2011/WD-html5-20110113/links.html#rel-archives]'
6767
author:
6868
description: "Refers to the context's author."
69-
reference: '[http://www.w3.org/TR/html5/links.html#link-type-author]'
69+
reference: '[https://www.w3.org/TR/html5/links.html#link-type-author]'
7070
blocked-by:
7171
description: "Identifies the entity that blocks access to a resource following receipt of a legal demand."
7272
reference: '[RFC7725]'
7373
bookmark:
7474
description: 'Gives a permanent link to use for bookmarking purposes.'
75-
reference: '[http://www.w3.org/TR/html5/links.html#link-type-bookmark]'
75+
reference: '[https://www.w3.org/TR/html5/links.html#link-type-bookmark]'
7676
canonical:
7777
description: 'Designates the preferred version of a resource (the IRI and its contents).'
7878
reference: '[RFC6596]'
7979
chapter:
8080
description: 'Refers to a chapter in a collection of resources.'
81-
reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
81+
reference: '[https://www.w3.org/TR/1999/REC-html401-19991224]'
8282
collection:
8383
description: 'The target IRI points to a resource which represents the collection resource for the context IRI.'
8484
reference: '[RFC6573]'
8585
contents:
8686
description: 'Refers to a table of contents.'
87-
reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
87+
reference: '[https://www.w3.org/TR/1999/REC-html401-19991224]'
8888
copyright:
8989
description: "Refers to a copyright statement that applies to the link's context."
90-
reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
90+
reference: '[https://www.w3.org/TR/1999/REC-html401-19991224]'
9191
create-form:
9292
description: 'The target IRI points to a resource where a submission form can be obtained.'
9393
reference: '[RFC6861]'
@@ -102,7 +102,7 @@ derivedfrom:
102102
reference: '[draft-hoffman-xml2rfc]'
103103
describedby:
104104
description: "Refers to a resource providing information about the link's context."
105-
reference: '[http://www.w3.org/TR/powder-dr/#assoc-linking]'
105+
reference: '[https://www.w3.org/TR/powder-dr/#assoc-linking]'
106106
describes:
107107
description: "The relationship A 'describes' B asserts that resource A provides a description of resource B. There are no constraints on the format or representation of either A or B, neither are there any further constraints on either resource."
108108
reference: '[RFC6892]'
@@ -135,10 +135,10 @@ first:
135135
notes: "This relation type registration did not indicate a reference. Originally requested by Mark Nottingham in December 2004."
136136
glossary:
137137
description: 'Refers to a glossary of terms.'
138-
reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
138+
reference: '[https://www.w3.org/TR/1999/REC-html401-19991224]'
139139
help:
140140
description: 'Refers to context-sensitive help.'
141-
reference: '[http://www.w3.org/TR/html5/links.html#link-type-help]'
141+
reference: '[https://www.w3.org/TR/html5/links.html#link-type-help]'
142142
hosts:
143143
description: "Refers to a resource hosted by the server indicated by the link context."
144144
reference: '[RFC6690]'
@@ -149,10 +149,10 @@ hub:
149149
notes: 'This relation type was requested by Brett Slatkin.'
150150
icon:
151151
description: "Refers to an icon representing the link's context."
152-
reference: '[http://www.w3.org/TR/html5/links.html#link-type-icon]'
152+
reference: '[https://www.w3.org/TR/html5/links.html#link-type-icon]'
153153
index:
154154
description: 'Refers to an index.'
155-
reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
155+
reference: '[https://www.w3.org/TR/1999/REC-html401-19991224]'
156156
item:
157157
description: 'The target IRI points to a resource that is a member of the collection represented by the context IRI.'
158158
reference: '[RFC6573]'
@@ -166,7 +166,7 @@ latest-version:
166166
license:
167167
description: 'Refers to a license associated with this context.'
168168
reference: '[RFC4946]'
169-
notes: "For implications of use in HTML, see: http://www.w3.org/TR/html5/links.html#link-type-license"
169+
notes: "For implications of use in HTML, see: https://www.w3.org/TR/html5/links.html#link-type-license"
170170
lrdd:
171171
description: "Refers to further information about the link's context, expressed as a LRDD (\"Link-based Resource Descriptor Document\") resource. See [RFC6415] for information about processing this relation type in host-meta documents. When used elsewhere, it refers to additional links and other metadata. Multiple instances indicate additional LRDD resources. LRDD resources MUST have an \"application/xrd+xml\" representation, and MAY have others."
172172
reference: '[RFC6415]'
@@ -182,16 +182,16 @@ monitor-group:
182182
reference: '[RFC5989]'
183183
next:
184184
description: "Indicates that the link's context is a part of a series, and that the next in the series is the link target."
185-
reference: '[http://www.w3.org/TR/html5/links.html#link-type-next]'
185+
reference: '[https://www.w3.org/TR/html5/links.html#link-type-next]'
186186
next-archive:
187187
description: 'Refers to the immediately following archive resource.'
188188
reference: '[RFC5005]'
189189
nofollow:
190190
description: 'Indicates that the context’s original author or publisher does not endorse the link target.'
191-
reference: '[http://www.w3.org/TR/html5/links.html#link-type-nofollow]'
191+
reference: '[https://www.w3.org/TR/html5/links.html#link-type-nofollow]'
192192
noreferrer:
193193
description: 'Indicates that no referrer information is to be leaked when following the link.'
194-
reference: '[http://www.w3.org/TR/html5/links.html#link-type-noreferrer]'
194+
reference: '[https://www.w3.org/TR/html5/links.html#link-type-noreferrer]'
195195
original:
196196
description: 'The Target IRI points to an Original Resource.'
197197
reference: '[RFC7089]'
@@ -211,23 +211,23 @@ predecessor-version:
211211
reference: '[RFC5829]'
212212
prefetch:
213213
description: "The prefetch link relation type is used to identify a resource that might be required by the next navigation from the link context, and that the user agent ought to fetch, such that the user agent can deliver a faster response once the resource is requested in the future."
214-
reference: '[http://www.w3.org/TR/resource-hints/]'
214+
reference: '[https://www.w3.org/TR/resource-hints/]'
215215
preload:
216216
description: "Refers to a resource that should be loaded early in the processing of the link's context, without blocking rendering."
217-
reference: '[http://www.w3.org/TR/preload/]'
217+
reference: '[https://www.w3.org/TR/preload/]'
218218
notes: 'Additional target attributes establish the detailed fetch properties of the link.'
219219
prerender:
220220
description: "Used to identify a resource that might be required by the next navigation from the link context, and that the user agent ought to fetch and execute, such that the user agent can deliver a faster response once the resource is requested in the future."
221221
reference: '[https://www.w3.org/TR/resource-hints/]'
222222
prev:
223223
description: "Indicates that the link's context is a part of a series, and that the previous in the series is the link target."
224-
reference: '[http://www.w3.org/TR/html5/links.html#link-type-prev]'
224+
reference: '[https://www.w3.org/TR/html5/links.html#link-type-prev]'
225225
preview:
226226
description: "Refers to a resource that provides a preview of the link's context."
227227
reference: '[RFC6903], section 3'
228228
previous:
229229
description: "Refers to the previous resource in an ordered series of resources. Synonym for \"prev\"."
230-
reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
230+
reference: '[https://www.w3.org/TR/1999/REC-html401-19991224]'
231231
prev-archive:
232232
description: 'Refers to the immediately preceding archive resource.'
233233
reference: '[RFC5005]'
@@ -249,7 +249,7 @@ search:
249249
reference: '[http://www.opensearch.org/Specifications/OpenSearch/1.1]'
250250
section:
251251
description: 'Refers to a section in a collection of resources.'
252-
reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
252+
reference: '[https://www.w3.org/TR/1999/REC-html401-19991224]'
253253
self:
254254
description: "Conveys an identifier for the link's context."
255255
reference: '[RFC4287]'
@@ -262,19 +262,19 @@ service:
262262
notes: "When used in an Atom document, this relation type specifies Atom Publishing Protocol service documents by default. Requested by James Snell."
263263
start:
264264
description: "Refers to the first resource in a collection of resources."
265-
reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
265+
reference: '[https://www.w3.org/TR/1999/REC-html401-19991224]'
266266
stylesheet:
267267
description: 'Refers to a stylesheet.'
268-
reference: '[http://www.w3.org/TR/html5/links.html#link-type-stylesheet]'
268+
reference: '[https://www.w3.org/TR/html5/links.html#link-type-stylesheet]'
269269
subsection:
270270
description: "Refers to a resource serving as a subsection in a collection of resources."
271-
reference: '[http://www.w3.org/TR/1999/REC-html401-19991224]'
271+
reference: '[https://www.w3.org/TR/1999/REC-html401-19991224]'
272272
successor-version:
273273
description: "Points to a resource containing the successor version in the version history."
274274
reference: '[RFC5829]'
275275
tag:
276276
description: "Gives a tag (identified by the given address) that applies to the current document."
277-
reference: '[http://www.w3.org/TR/html5/links.html#link-type-tag]'
277+
reference: '[https://www.w3.org/TR/html5/links.html#link-type-tag]'
278278
terms-of-service:
279279
description: "Refers to the terms of service associated with the link's context."
280280
reference: '[RFC6903], section 5'
@@ -301,7 +301,7 @@ via:
301301
reference: '[RFC4287]'
302302
webmention:
303303
description: "Identifies a target URI that supports the Webmention protocol. This allows clients that mention a resource in some form of publishing process to contact that endpoint and inform it that this resource has been mentioned."
304-
reference: '[http://www.w3.org/TR/webmention/]'
304+
reference: '[https://www.w3.org/TR/webmention/]'
305305
notes: "This is a similar \"Linkback\" mechanism to the ones of Refback, Trackback, and Pingback. It uses a different protocol, though, and thus should be discoverable through its own link relation type."
306306
working-copy:
307307
description: 'Points to a working copy for this resource.'

includes/theme.inc

+7-7
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ function template_preprocess_time(&$variables) {
337337
/** @var \Drupal\Core\Datetime\DateFormatterInterface $date_formatter */
338338
$date_formatter = \Drupal::service('date.formatter');
339339
// Format the 'datetime' attribute based on the timestamp.
340-
// @see http://www.w3.org/TR/html5-author/the-time-element.html#attr-time-datetime
340+
// @see https://www.w3.org/TR/html5-author/the-time-element.html#attr-time-datetime
341341
if (!isset($variables['attributes']['datetime']) && isset($variables['timestamp'])) {
342342
$variables['attributes']['datetime'] = $date_formatter->format($variables['timestamp'], 'html_datetime', '', 'UTC');
343343
}
@@ -504,7 +504,7 @@ function template_preprocess_datetime_wrapper(&$variables) {
504504
* technology. Headings allow screen reader and keyboard only users to
505505
* navigate to or skip the links. See
506506
* http://juicystudio.com/article/screen-readers-display-none.php and
507-
* http://www.w3.org/TR/WCAG-TECHS/H42.html for more information.
507+
* https://www.w3.org/TR/WCAG-TECHS/H42.html for more information.
508508
*
509509
* @see \Drupal\Core\Utility\LinkGenerator
510510
* @see \Drupal\Core\Utility\LinkGenerator::generate()
@@ -631,8 +631,8 @@ function template_preprocess_links(&$variables) {
631631
* accessibility requirements, so it is strongly encouraged for code
632632
* building variables for image.html.twig templates to pass a meaningful
633633
* value for this variable.
634-
* - http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.8
635-
* - http://www.w3.org/TR/xhtml1/dtds.html
634+
* - https://www.w3.org/TR/REC-html40/struct/objects.html#h-13.8
635+
* - https://www.w3.org/TR/xhtml1/dtds.html
636636
* - http://dev.w3.org/html5/spec/Overview.html#alt
637637
* - title: The title text is displayed when the image is hovered in some
638638
* popular browsers.
@@ -649,7 +649,7 @@ function template_preprocess_image(&$variables) {
649649
$variables['attributes']['src'] = $file_url_generator->generateString($variables['uri']);
650650
}
651651
// Generate a srcset attribute conforming to the spec at
652-
// http://www.w3.org/html/wg/drafts/html/master/embedded-content.html#attr-img-srcset
652+
// https://www.w3.org/html/wg/drafts/html/master/embedded-content.html#attr-img-srcset
653653
if (!empty($variables['srcset'])) {
654654
$srcset = [];
655655
foreach ($variables['srcset'] as $src) {
@@ -1867,8 +1867,8 @@ function drupal_common_theme() {
18671867
// accessibility requirements, so it is strongly encouraged for code
18681868
// building variables for image.html.twig templates to pass a meaningful
18691869
// value for the alt variable.
1870-
// - http://www.w3.org/TR/REC-html40/struct/objects.html#h-13.8
1871-
// - http://www.w3.org/TR/xhtml1/dtds.html
1870+
// - https://www.w3.org/TR/REC-html40/struct/objects.html#h-13.8
1871+
// - https://www.w3.org/TR/xhtml1/dtds.html
18721872
// - http://dev.w3.org/html5/spec/Overview.html#alt
18731873
// The title attribute is optional in all cases, so it is omitted by
18741874
// default.

lib/Drupal/Component/Utility/Html.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public static function getClass($class) {
8585
* Link below shows the syntax for valid CSS identifiers (including element
8686
* names, classes, and IDs in selectors).
8787
*
88-
* @see http://www.w3.org/TR/CSS21/syndata.html#characters
88+
* @see https://www.w3.org/TR/CSS21/syndata.html#characters
8989
*
9090
* @param string $identifier
9191
* The identifier to clean.
@@ -224,11 +224,11 @@ public static function getUniqueId($id) {
224224
public static function getId($id) {
225225
$id = str_replace([' ', '_', '[', ']'], ['-', '-', '-', ''], mb_strtolower($id));
226226

227-
// As defined in http://www.w3.org/TR/html4/types.html#type-name, HTML IDs can
227+
// As defined in https://www.w3.org/TR/html4/types.html#type-name, HTML IDs can
228228
// only contain letters, digits ([0-9]), hyphens ("-"), underscores ("_"),
229229
// colons (":"), and periods ("."). We strip out any character not in that
230230
// list. Note that the CSS spec doesn't allow colons or periods in identifiers
231-
// (http://www.w3.org/TR/CSS21/syndata.html#characters), so we strip those two
231+
// (https://www.w3.org/TR/CSS21/syndata.html#characters), so we strip those two
232232
// characters as well.
233233
$id = preg_replace('/[^A-Za-z0-9\-_]/', '', $id);
234234

lib/Drupal/Component/Utility/UserAgent.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public static function getBestMatchingLangcode($http_accept_language, $langcodes
7979
// In that case, we assume that the lowest value of the specific tags is the
8080
// value of the generic language to be as close to the HTTP 1.1 spec as
8181
// possible.
82-
// See http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4 and
82+
// See https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4 and
8383
// http://blogs.msdn.com/b/ie/archive/2006/10/17/accept-language-header-for-internet-explorer-7.aspx
8484
asort($ua_langcodes);
8585
foreach ($ua_langcodes as $langcode => $qvalue) {

lib/Drupal/Component/Utility/Xss.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ protected static function attributes($attributes) {
231231
// to be mangled. We prevent this by skipping protocol filtering on
232232
// such attributes.
233233
// @see \Drupal\Component\Utility\UrlHelper::filterBadProtocol()
234-
// @see http://www.w3.org/TR/html4/index/attributes.html
234+
// @see https://www.w3.org/TR/html4/index/attributes.html
235235
$skip_protocol_filtering = str_starts_with($attribute_name, 'data-') || in_array($attribute_name, [
236236
'title',
237237
'alt',

lib/Drupal/Core/Asset/CssCollectionOptimizerLazy.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function optimizeGroup(array $group): string {
151151
$data .= $this->optimizer->optimize($css_asset);
152152
}
153153
// Per the W3C specification at
154-
// http://www.w3.org/TR/REC-CSS2/cascade.html#at-import, @import rules must
154+
// https://www.w3.org/TR/REC-CSS2/cascade.html#at-import, @import rules must
155155
// precede any other style, so we move those to the top. The regular
156156
// expression is expressed in NOWDOC since it is detecting backslashes as
157157
// well as single and double quotes. It is difficult to read when

lib/Drupal/Core/Cache/Context/CacheContextsManager.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* state by which should varied (the current URL, language, and so on).
1515
*
1616
* Note that this maps exactly to HTTP's Vary header semantics:
17-
* @link http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.44
17+
* @link https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.44
1818
*
1919
* @see \Drupal\Core\Cache\Context\CacheContextInterface
2020
* @see \Drupal\Core\Cache\Context\CalculatedCacheContextInterface

lib/Drupal/Core/Form/FormBuilder.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ protected function handleInputElement($form_id, &$element, FormStateInterface &$
11781178
// of how the element is themed or whether JavaScript is used to change the
11791179
// control's attributes. However, it's good UI to let the user know that
11801180
// input is not wanted for the control. HTML supports two attributes for:
1181-
// this: http://www.w3.org/TR/html401/interact/forms.html#h-17.12. If a form
1181+
// this: https://www.w3.org/TR/html401/interact/forms.html#h-17.12. If a form
11821182
// wants to start a control off with one of these attributes for UI
11831183
// purposes, only, but still allow input to be processed if it's submitted,
11841184
// it can set the desired attribute in #attributes directly rather than
@@ -1364,7 +1364,7 @@ protected function buttonWasClicked($element, FormStateInterface &$form_state) {
13641364
// The input value attribute is treated as CDATA by browsers. This means
13651365
// that they replace character entities with characters. Therefore, we need
13661366
// to decode the value in $element['#value']. For more details see
1367-
// http://www.w3.org/TR/html401/types.html#type-cdata.
1367+
// https://www.w3.org/TR/html401/types.html#type-cdata.
13681368
if (isset($input[$element['#name']]) && $input[$element['#name']] == Html::decodeEntities($element['#value'])) {
13691369
return TRUE;
13701370
}

lib/Drupal/Core/Form/FormState.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ public function setRequestMethod($method) {
662662
* @return bool
663663
*
664664
* @see \Symfony\Component\HttpFoundation\Request::isMethodSafe()
665-
* @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.1.1
665+
* @see https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.1.1
666666
*/
667667
protected function isRequestMethodSafe() {
668668
return in_array($this->requestMethod, ['GET', 'HEAD']);

lib/Drupal/Core/Language/LanguageInterface.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ interface LanguageInterface {
2626
* determined. This special language code is useful when we know the data
2727
* might have linguistic information, but we don't know the language.
2828
*
29-
* See http://www.w3.org/International/questions/qa-no-language#undetermined.
29+
* See https://www.w3.org/International/questions/qa-no-language#undetermined.
3030
*/
3131
const LANGCODE_NOT_SPECIFIED = 'und';
3232

@@ -36,7 +36,7 @@ interface LanguageInterface {
3636
* Should be used when we explicitly know that the data referred has no
3737
* linguistic content.
3838
*
39-
* See http://www.w3.org/International/questions/qa-no-language#nonlinguistic.
39+
* See https://www.w3.org/International/questions/qa-no-language#nonlinguistic.
4040
*/
4141
const LANGCODE_NOT_APPLICABLE = 'zxx';
4242

lib/Drupal/Core/Language/LanguageManagerInterface.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function getConfigOverrideLanguage();
203203
* Language codes are defined by the W3C language tags document for
204204
* interoperability. Language codes typically have a language and, optionally,
205205
* a script or regional variant name. See:
206-
* http://www.w3.org/International/articles/language-tags/ for more
206+
* https://www.w3.org/International/articles/language-tags/ for more
207207
* information.
208208
*
209209
* @return array

0 commit comments

Comments
 (0)