Skip to content

Commit 277374f

Browse files
authored
Merge pull request #2323 from vsemozhetbyt/patch-6
Expand a note in 5.8 (XMLHttpRequest)
2 parents 59c5400 + 513d36e commit 277374f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

5-network/08-xmlhttprequest/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ We can use `xhr.responseType` property to set the response format:
151151
- `"text"` -- get as string,
152152
- `"arraybuffer"` -- get as `ArrayBuffer` (for binary data, see chapter <info:arraybuffer-binary-arrays>),
153153
- `"blob"` -- get as `Blob` (for binary data, see chapter <info:blob>),
154-
- `"document"` -- get as XML document (can use XPath and other XML methods),
154+
- `"document"` -- get as XML document (can use XPath and other XML methods) or HTML document (based on the MIME type of the received data),
155155
- `"json"` -- get as JSON (parsed automatically).
156156
157157
For example, let's get the response as JSON:

0 commit comments

Comments
 (0)