|
1 | 1 | <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
2 | 2 | <xsl:template name="note"> |
3 | 3 | <xsl:choose> |
| 4 | + <xsl:when test="@id = 'data-doesnt-accept-undefined'"> |
| 5 | + <code>undefined</code> is not recognised as a data value. Calls such as <code><xsl:value-of select="@data-title" />( <xsl:value-of select="@data-parameters" />, undefined )</code> will return the corresponding data for "name", and is therefore the same as <code><xsl:value-of select="@data-title" />( <xsl:value-of select="@data-parameters" /> )</code>. |
| 6 | + </xsl:when> |
4 | 7 | <xsl:when test="@id = 'dimensions-number'"> |
5 | 8 | The numbers returned by dimensions-related APIs, including <code><xsl:value-of select="@data-title"/></code>, may be fractional in some cases. Code should not assume it is an integer. Also, dimensions may be incorrect when the page is zoomed by the user; browsers do not expose an API to detect this condition. |
6 | 9 | </xsl:when> |
7 | 10 | <xsl:when test="@id = 'disconnected-manipulation'"> |
8 | 11 | Prior to jQuery 1.9, <code><xsl:value-of select="@data-title"/></code> would attempt to add or change nodes in the current jQuery set if the first node in the set was not connected to a document, and in those cases return a new jQuery set rather than the original set. The method might or might not have returned a new result depending on the number or connectedness of its arguments! As of jQuery 1.9, <code>.after()</code>, <code>.before()</code>, and <code>.replaceWith()</code> always return the original unmodified set. Attempting to use these methods on a node without a parent has no effect—that is, neither the set nor the nodes it contains are changed. |
9 | 12 | </xsl:when> |
10 | | - <xsl:when test="@id = 'removes-data'"> |
11 | | - The <code><xsl:value-of select="@data-title"/></code> method removes all data and event handlers associated with the removed nodes. |
12 | | - </xsl:when> |
13 | 13 | <xsl:when test="@id = 'document-order'"> |
14 | 14 | Selected elements are in the order of their appearance in the document. |
15 | 15 | </xsl:when> |
|
34 | 34 | <xsl:when test="@id = 'propagation-for-live-or-delegate'"> |
35 | 35 | 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>. |
36 | 36 | </xsl:when> |
| 37 | + <xsl:when test="@id = 'removes-data'"> |
| 38 | + The <code><xsl:value-of select="@data-title"/></code> method removes all data and event handlers associated with the removed nodes. |
| 39 | + </xsl:when> |
37 | 40 | <xsl:when test="@id = 'same-origin-policy'"> |
38 | 41 | 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, port, or protocol. |
39 | 42 | </xsl:when> |
|
0 commit comments