Skip to content

Commit a36639c

Browse files
committed
Adjust URLs to be protocol-relative where necessary.
Closes jquerygh-392
1 parent 4a02fc5 commit a36639c

11 files changed

+17
-17
lines changed

LICENSE-MIT.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Copyright (c) 2013 jQuery Foundation, http://jquery.org/
33

44
This software consists of voluntary contributions made by many
55
individuals. For exact contribution history, see the revision history
6-
and logs, available at http://github.com/jquery/api.jquery.com
6+
and logs, available at https://github.com/jquery/api.jquery.com
77

88
Permission is hereby granted, free of charge, to any person obtaining
99
a copy of this software and associated documentation files (the

categories.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<category name="Ajax" slug="ajax">
44
<desc><![CDATA[The jQuery library has a full suite of AJAX capabilities. The functions and methods therein allow us to load data from the server without a browser page refresh. ]]></desc>
55
<category name="Global Ajax Event Handlers" slug="global-ajax-event-handlers">
6-
<desc><![CDATA[These methods register handlers to be called when certain events, such as initialization or completion, take place for any AJAX request on the page. The global events are fired on each AJAX request if the <code>global</code> property in <a href="http://api.jquery.com/jQuery.ajaxSetup/"><code>jQuery.ajaxSetup()</code></a> is <code>true</code>, which it is by default. <em>Note: Global events are never fired for cross-domain script or JSONP requests, regardless of the value of <code>global</code>.</em>]]></desc>
6+
<desc><![CDATA[These methods register handlers to be called when certain events, such as initialization or completion, take place for any AJAX request on the page. The global events are fired on each AJAX request if the <code>global</code> property in <a href="/https/github.com/jQuery.ajaxSetup/"><code>jQuery.ajaxSetup()</code></a> is <code>true</code>, which it is by default. <em>Note: Global events are never fired for cross-domain script or JSONP requests, regardless of the value of <code>global</code>.</em>]]></desc>
77
</category>
88
<category name="Helper Functions" slug="helper-functions">
99
<desc><![CDATA[These functions assist with common idioms encountered when performing AJAX tasks.]]></desc>

entries/contents.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ $( "p" )
5555
$( "#frameDemo" ).contents().find( "a" ).css( "background-color", "#BADA55" );
5656
]]></code>
5757
<html><![CDATA[
58-
<iframe src="http://api.jquery.com/" width="80%" height="600" id="frameDemo"></iframe>
58+
<iframe src="//api.jquery.com/" width="80%" height="600" id="frameDemo"></iframe>
5959
]]></html>
6060
</example>
6161
<category slug="traversing/miscellaneous-traversal"/>

entries/deferred.always.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<p>The argument can be either a single function or an array of functions. When the Deferred is resolved or rejected, the <code>alwaysCallbacks</code> are called. Since <code>deferred.always()</code> returns the Deferred object, other methods of the Deferred object can be chained to this one, including additional <code>.always()</code> methods. When the Deferred is resolved or rejected, callbacks are executed in the order they were added, using the arguments provided to the <a href="/deferred.resolve/"><code>resolve</code></a>, <a href="/deferred.reject/"><code>reject</code></a>, <a href="/deferred.resolveWith/"><code>resolveWith</code></a> or <a href="/deferred.rejectWith/"><code>rejectWith</code></a> method calls. For more information, see the documentation for <a href="/category/deferred-object/">Deferred object</a>.</p>
2020
</longdesc>
2121
<example>
22-
<desc>Since the <a href="http://api.jquery.com/jQuery.get/"><code>jQuery.get()</code></a> method returns a <code>jqXHR</code> object, which is derived from a Deferred object, we can attach a callback for both success and error using the <code>deferred.always()</code> method.</desc>
22+
<desc>Since the <a href="/jQuery.get/"><code>jQuery.get()</code></a> method returns a <code>jqXHR</code> object, which is derived from a Deferred object, we can attach a callback for both success and error using the <code>deferred.always()</code> method.</desc>
2323
<code><![CDATA[
2424
$.get( "test.php" ).always(function() {
2525
alert( "$.get completed with success or error callback arguments" );

entries/jQuery.getScript.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ $.getScript( "ajax/test.js", function( data, textStatus, jqxhr ) {
3838
});
3939
</code></pre>
4040
<h4 id="handling-errors">Handling Errors</h4>
41-
<p>As of jQuery 1.5, you may use <a href="http://api.jquery.com/deferred.fail/"><code>.fail()</code></a> to account for errors:</p>
41+
<p>As of jQuery 1.5, you may use <a href="/deferred.fail/"><code>.fail()</code></a> to account for errors:</p>
4242
<pre><code>
4343
$.getScript( "ajax/test.js" )
4444
.done(function( script, textStatus ) {
@@ -89,7 +89,7 @@ $.cachedScript( "ajax/test.js" ).done(function( script, textStatus ) {
8989
]]></code>
9090
</example>
9191
<example>
92-
<desc>Load the <a href="http://github.com/jquery/jquery-color">official jQuery Color Animation plugin</a> dynamically and bind some color animations to occur once the new functionality is loaded.</desc>
92+
<desc>Load the <a href="https://github.com/jquery/jquery-color">official jQuery Color Animation plugin</a> dynamically and bind some color animations to occur once the new functionality is loaded.</desc>
9393
<code><![CDATA[
9494
var url = "https://raw.github.com/jquery/jquery-color/master/jquery.color.js";
9595
$.getScript( url, function() {

entries/jQuery.noConflict.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ jQuery( "div > p" ).hide();
9292
<div id="log">
9393
<h3>Before $.noConflict(true)</h3>
9494
</div>
95-
<script src="http://code.jquery.com/jquery-1.6.2.js"></script>
95+
<script src="//code.jquery.com/jquery-1.6.2.js"></script>
9696
]]></html>
9797
<code><![CDATA[
9898
var $log = $( "#log" );

entries/keypress.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ $( "#other" ).click(function() {
104104
<button id="other">
105105
Trigger the handler
106106
</button>
107-
<script src="http://api.jquery.com/resources/events.js"></script>
107+
<script src="/https/github.com/resources/events.js"></script>
108108
]]></html>
109109
</example>
110110
<category slug="events/keyboard-events"/>

entries/live.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
</argument>
3131
</signature>
3232
<longdesc>
33-
<p><strong>As of jQuery 1.7</strong>, the <code>.live()</code> method is deprecated. Use <a href="http://api.jquery.com/on/"><code>.on()</code></a> to attach event handlers. Users of older versions of jQuery should use <a href="http://api.jquery.com/delegate/"><code>.delegate()</code></a> in preference to <code>.live()</code>.</p>
34-
<p>This method provides a means to attach delegated event handlers to the <code>document</code> element of a page, which simplifies the use of event handlers when content is dynamically added to a page. See the discussion of direct versus delegated events in the <a href="http://api.jquery.com/on/"><code>.on()</code></a> method for more information. </p>
33+
<p><strong>As of jQuery 1.7</strong>, the <code>.live()</code> method is deprecated. Use <a href="/on/"><code>.on()</code></a> to attach event handlers. Users of older versions of jQuery should use <a href="/delegate/"><code>.delegate()</code></a> in preference to <code>.live()</code>.</p>
34+
<p>This method provides a means to attach delegated event handlers to the <code>document</code> element of a page, which simplifies the use of event handlers when content is dynamically added to a page. See the discussion of direct versus delegated events in the <a href="/on/"><code>.on()</code></a> method for more information. </p>
3535
<p>Rewriting the <code>.live()</code> method in terms of its successors is straightforward; these are templates for equivalent calls for all three event attachment methods:</p>
3636
<pre><code>
3737
$( selector ).live( events, data, handler ); // jQuery 1.3+

entries2html.xsl

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
&lt;meta charset="utf-8"&gt;
1313
&lt;title&gt;<xsl:value-of select="//entry/@name"/> demo&lt;/title&gt;<xsl:if test="css">
1414
&lt;style&gt;<xsl:value-of select="css/text()"/> &lt;/style&gt;</xsl:if>
15-
&lt;script src="http://code.jquery.com/jquery-1.9.1.js"&gt;&lt;/script&gt;<xsl:if test="code/@location='head'">
15+
&lt;script src="//code.jquery.com/jquery-1.9.1.js"&gt;&lt;/script&gt;<xsl:if test="code/@location='head'">
1616
&lt;script&gt;
1717
<xsl:copy-of select="code/text()"/>
1818
&lt;/script&gt;

notes.xsl

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@
88
Forms and their child elements should not use input names or ids that conflict with properties of a form, such as <code>submit</code>, <code>length</code>, or <code>method</code>. Name conflicts can cause confusing failures. For a complete list of rules and to check your markup for these problems, see <a href="http://kangax.github.com/domlint/">DOMLint</a>.
99
</xsl:when>
1010
<xsl:when test="@id = 'jquery-selector-extension'">
11-
Because <code><xsl:value-of select="@data-selector"/></code> is a jQuery extension and not part of the CSS specification, queries using <code><xsl:value-of select="@data-selector"/></code> cannot take advantage of the performance boost provided by the native DOM <code>querySelectorAll()</code> method. To achieve the best performance when using <code><xsl:value-of select="@data-selector"/></code> to select elements, first select the elements using a pure CSS selector, then use <a href="http://api.jquery.com/filter/"><code>.filter("<xsl:value-of select="@data-selector"/>")</code></a>.
11+
Because <code><xsl:value-of select="@data-selector"/></code> is a jQuery extension and not part of the CSS specification, queries using <code><xsl:value-of select="@data-selector"/></code> cannot take advantage of the performance boost provided by the native DOM <code>querySelectorAll()</code> method. To achieve the best performance when using <code><xsl:value-of select="@data-selector"/></code> to select elements, first select the elements using a pure CSS selector, then use <a href="/filter/"><code>.filter("<xsl:value-of select="@data-selector"/>")</code></a>.
1212
</xsl:when>
1313
<xsl:when test="@id = 'jquery-selector-extension-alt'">
1414
Because <code><xsl:value-of select="@data-selector"/></code> is a jQuery extension and not part of the CSS specification, queries using <code><xsl:value-of select="@data-selector"/></code> cannot take advantage of the performance boost provided by the native DOM <code>querySelectorAll()</code> method. For better performance in modern browsers, use <code><xsl:value-of select="@data-alt"/></code> instead.
1515
</xsl:when>
1616
<xsl:when test="@id = 'jquery.fx.off'">
17-
All jQuery effects, including <code><xsl:value-of select="@data-title"/></code>, can be turned off globally by setting <code>jQuery.fx.off = true</code>, which effectively sets the duration to 0. For more information, see <a href="http://api.jquery.com/jquery.fx.off">jQuery.fx.off</a>.
17+
All jQuery effects, including <code><xsl:value-of select="@data-title"/></code>, can be turned off globally by setting <code>jQuery.fx.off = true</code>, which effectively sets the duration to 0. For more information, see <a href="/jquery.fx.off/">jQuery.fx.off</a>.
1818
</xsl:when>
1919
<xsl:when test="@id = 'no-data-on-xml'">
2020
Note that this method currently does not provide cross-platform support for setting data on XML documents, as Internet Explorer does not allow data to be attached via expando properties.
2121
</xsl:when>
2222
<xsl:when test="@id = 'prop-memory-leaks'">
23-
In Internet Explorer prior to version 9, using <code><a href="http://api.jquery.com/prop/">.prop()</a></code> to set a DOM element property to anything other than a simple primitive value (number, string, or boolean) can cause memory leaks if the property is not removed (using <a href="http://api.jquery.com/removeProp/"><code>.removeProp()</code></a>) before the DOM element is removed from the document. To safely set values on DOM objects without memory leaks, use <a href="http://api.jquery.com/data/"><code>.data()</code></a>.
23+
In Internet Explorer prior to version 9, using <code><a href="/prop/">.prop()</a></code> to set a DOM element property to anything other than a simple primitive value (number, string, or boolean) can cause memory leaks if the property is not removed (using <a href="/removeProp/"><code>.removeProp()</code></a>) before the DOM element is removed from the document. To safely set values on DOM objects without memory leaks, use <a href="/data/"><code>.data()</code></a>.
2424
</xsl:when>
2525
<xsl:when test="@id = 'propagation-for-live-or-delegate'">
26-
Since the <a href="http://api.jquery.com/live"><code>.live()</code></a> method handles events once they have propagated to the top of the document, it is not possible to stop propagation of live events. Similarly, events handled by <code><a href="http://api.jquery.com/delegate/">.delegate()</a></code> will propagate to the elements to which they are delegated; event handlers bound on any elements below it in the DOM tree will already have been executed by the time the delegated event handler is called. These handlers, therefore, may prevent the delegated handler from triggering by calling <code><a href="http://api.jquery.com/event.stopPropagation/">event.stopPropagation()</a></code> or returning <code>false</code>.
26+
Since the <a href="/live/"><code>.live()</code></a> method handles events once they have propagated to the top of the document, it is not possible to stop propagation of live events. Similarly, events handled by <code><a href="/delegate/">.delegate()</a></code> will propagate to the elements to which they are delegated; event handlers bound on any elements below it in the DOM tree will already have been executed by the time the delegated event handler is called. These handlers, therefore, may prevent the delegated handler from triggering by calling <code><a href="/event.stopPropagation/">event.stopPropagation()</a></code> or returning <code>false</code>.
2727
</xsl:when>
2828
<xsl:when test="@id = 'same-origin-policy'">
2929
Due to browser security restrictions, most "Ajax" requests are subject to the <a title="Same Origin Policy on Wikipedia" href="http://en.wikipedia.org/wiki/Same_origin_policy">same origin policy</a>; the request can not successfully retrieve data from a different domain, subdomain, or protocol.
@@ -32,7 +32,7 @@
3232
Script and JSONP requests are not subject to the same origin policy restrictions.
3333
</xsl:when>
3434
<xsl:when test="@id = 'use-ajaxerror'">
35-
If a request with <xsl:value-of select="@data-title"/> returns an error code, it will fail silently unless the script has also called the global <a href="http://api.jquery.com/ajaxError/">.ajaxError() </a> method. Alternatively, as of jQuery 1.5, the <code>.error()</code> method of the <code>jqXHR</code> object returned by <xsl:value-of select="@data-title"/> is also available for error handling.
35+
If a request with <xsl:value-of select="@data-title"/> returns an error code, it will fail silently unless the script has also called the global <a href="/ajaxError/">.ajaxError() </a> method. Alternatively, as of jQuery 1.5, the <code>.error()</code> method of the <code>jqXHR</code> object returned by <xsl:value-of select="@data-title"/> is also available for error handling.
3636
</xsl:when>
3737
<xsl:when test="@id = 'ajax-global-false'">
3838
If <code><a href="/jQuery.Ajax/">$.ajax()</a></code> or <code><a href="/jQuery.ajaxSetup/">$.ajaxSetup()</a></code> is called with the <code>global</code> option set to <code>false</code>, the <code><xsl:value-of select="@data-title"/></code> method will not fire.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"version": "1.10.9",
66
"homepage": "https://github.com/jquery/api.jquery.com",
77
"author": {
8-
"name": "jQuery Foundation (http://jquery.org/)"
8+
"name": "jQuery Foundation (https://jquery.org/)"
99
},
1010
"repository": {
1111
"type": "git",

0 commit comments

Comments
 (0)