Skip to content

Commit 56b950b

Browse files
committed
Fix docs stating that body is the default value for fragment
That's not exactly true, as we require users to specify an explicit `fragment` value if they're dealing with full-HTML responses from the server. This explicit value can be "body" if the user chooses so, but that must be decided on a per-app basis. If no explicit `fragment` value is provided, a full-HTML response will trigger a native reload of the page. Closes #475 [ci skip]
1 parent 9970438 commit 56b950b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ key | default | description
163163
`container` | | CSS selector for the element where content should be replaced
164164
`url` | link.href | a string or function that returns the URL for the ajax request
165165
`target` | link | eventually the `relatedTarget` value for [pjax events](#events)
166-
`fragment` | `"body"` | CSS selector for the fragment to extract from ajax response
166+
`fragment` | | CSS selector for the fragment to extract from ajax response
167167

168168
You can change the defaults globally by writing to the `$.pjax.defaults` object:
169169

0 commit comments

Comments
 (0)