Skip to content

Commit 582f8c8

Browse files
author
Gabriel Schulhof
committed
Page: Document that data-attribute data-url stores a non-URI-encoded value
Closes gh-313 Re jquery-archive/jquery-mobile#1383 (cherry picked from commit d5881e2)
1 parent 68420df commit 582f8c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/data-attribute.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ <h2><a href="../page/">Page</a></h2>
400400
<td>string - Title used when page is shown</td>
401401
</tr>
402402
<tr>
403-
<th>data-url</th>
404-
<td>url - Value for updating the URL, instead of the url used to request the page</td>
403+
<th id="page-data-url">data-url</th>
404+
<td>url - Value for updating the URL, instead of the url used to request the page. The value of this attribute should not be URI-encoded. If your path or filename contains apostrophes or quotation marks, use entity encoding in the value, rather than URL encoding. For example, <code style="white-space: nowrap;">data-url="/path/to/<b>&amp;quot;</b>Devil<b>&amp;apos;</b>s Advocate<b>&amp;quot;</b>.html"</code></td>
405405
</tr>
406406
</table>
407407
<p></p>

0 commit comments

Comments
 (0)