Skip to content

Commit 82380a7

Browse files
Arknimgol
authored andcommitted
data: Replace URL markdown syntax with HTML
Ref jquery#943 Closes jquery#1087
1 parent 05caac8 commit 82380a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entries/data.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ alert( $( "body" ).data( "foo" ) ); // undefined
8989
$( "body" ).data( "bar", "foobar" );
9090
alert( $( "body" ).data( "bar" ) ); // foobar
9191
</code></pre>
92-
<p><strong>jQuery 3</strong> changes the behavior of this method to align it to the <a href="http://www.w3.org/TR/html5/dom.html#dom-dataset">Dataset API specifications</a>. Specifically, jQuery 3 transforms every two-character sequence of "-" (U+002D) followed by a lowercase ASCII letter by the uppercase version of the letter as per definition of [the algorithm of the Dataset API](http://www.w3.org/TR/html5/dom.html#dom-dataset). Writing a statement like <code>$( "body" ).data( { "my-name": "aValue" } ).data();</code> will return <code>{ myName: "aValue" }</code>.</p>
92+
<p><strong>jQuery 3</strong> changes the behavior of this method to align it to the <a href="http://www.w3.org/TR/html5/dom.html#dom-dataset">Dataset API specifications</a>. Specifically, jQuery 3 transforms every two-character sequence of "-" (U+002D) followed by a lowercase ASCII letter by the uppercase version of the letter as per definition of <a href="http://www.w3.org/TR/html5/dom.html#dom-dataset">the algorithm of the Dataset API</a>. Writing a statement like <code>$( "body" ).data( { "my-name": "aValue" } ).data();</code> will return <code>{ myName: "aValue" }</code>.</p>
9393
<h4 id="data-html5">
9494
<a href="#data-html5">HTML5 data-* Attributes</a>
9595
</h4>

0 commit comments

Comments
 (0)