From 513d36eabf5e4b744cd7a1e7fe053e1073a54530 Mon Sep 17 00:00:00 2001 From: Vse Mozhe Buty Date: Sat, 28 Nov 2020 19:56:23 +0200 Subject: [PATCH] Expand a note in 5.8 (XMLHttpRequest) --- 5-network/08-xmlhttprequest/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/5-network/08-xmlhttprequest/article.md b/5-network/08-xmlhttprequest/article.md index 1a2b754e..af5d254f 100644 --- a/5-network/08-xmlhttprequest/article.md +++ b/5-network/08-xmlhttprequest/article.md @@ -151,7 +151,7 @@ We can use `xhr.responseType` property to set the response format: - `"text"` -- get as string, - `"arraybuffer"` -- get as `ArrayBuffer` (for binary data, see chapter ), - `"blob"` -- get as `Blob` (for binary data, see chapter ), -- `"document"` -- get as XML document (can use XPath and other XML methods), +- `"document"` -- get as XML document (can use XPath and other XML methods) or HTML document (based on the MIME type of the received data), - `"json"` -- get as JSON (parsed automatically). For example, let's get the response as JSON: