Skip to content

Commit 276c9d6

Browse files
committed
Notes.xsl: Touch up note about manipulation of disconnected nodes
1 parent 501491b commit 276c9d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

notes.xsl

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
<xsl:choose>
44
<xsl:when test="@id = 'dimensions-number'">
55
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+
</xsl:when>
67
<xsl:when test="@id = 'disconnected-manipulation'">
7-
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 return a new result depending on the number or connectedness of its arguments! As of jQuery 1.9, these methods always return the original unmodified set and attempting to use .after(), .before(), or .replaceWith() on a node without a parent has no effect--that is, neither the set or the nodes it contains are changed.
8+
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 effectthat is, neither the set nor the nodes it contains are changed.
89
</xsl:when>
910
<xsl:when test="@id = 'document-order'">
1011
Selected elements are in the order of their appearance in the document.

0 commit comments

Comments
 (0)