{"id":17568,"date":"2017-03-30T16:14:59","date_gmt":"2017-03-30T20:14:59","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=17568"},"modified":"2017-03-30T16:16:31","modified_gmt":"2017-03-30T20:16:31","slug":"new-web-features-in-safari-10-1","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2017\/03\/30\/new-web-features-in-safari-10-1\/","title":{"rendered":"New Web Features in Safari 10.1"},"content":{"rendered":"<p><a href=\"https:\/\/webkit.org\/blog\/7477\/new-web-features-in-safari-10-1\/\">Jon Davis<\/a>:<\/p>\n<blockquote cite=\"https:\/\/webkit.org\/blog\/7477\/new-web-features-in-safari-10-1\/\">\n<p>Fetch is a modern replacement for <code>XMLHttpRequest<\/code>. It provides a simpler approach to request resources asynchronously over the network. It also makes use of <a href=\"http:\/\/www.ecma-international.org\/ecma-262\/6.0\/#sec-promise-objects\">Promises<\/a> from ECMAScript 2015 (ES6) for convenient, chain-able response handling.<\/p>\n<p>[&#8230;]<\/p>\n<p>WebKit&rsquo;s IndexedDB implementation has significant improvements in this release. It&rsquo;s now faster, standards compliant, and supports new IndexedDB 2.0 features. IndexedDB 2.0 adds support for binary data types as index keys, so you&rsquo;ll no longer need to serialize them into strings or array objects.<\/p>\n<p>[&#8230;]<\/p>\n<p>The <code>download<\/code> attribute for anchor elements is now available in Safari 10.1 on macOS.  It indicates the link target is a download link that should download a file instead of navigating to the linked resource. It also enables developers to create a link that downloads blob data as files entirely from JavaScript. Clicking a link with a <code>download<\/code> attribute causes the target resource to be downloaded as a file. The optional value of the <code>download<\/code> attribute can be used to provide a suggested name for the file.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Jon Davis: Fetch is a modern replacement for XMLHttpRequest. It provides a simpler approach to request resources asynchronously over the network. It also makes use of Promises from ECMAScript 2015 (ES6) for convenient, chain-able response handling. [&#8230;] WebKit&rsquo;s IndexedDB implementation has significant improvements in this release. It&rsquo;s now faster, standards compliant, and supports new IndexedDB [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[143,339,31,1380,346,30,1381,103,96,328],"class_list":["post-17568","post","type-post","status-publish","format-standard","hentry","category-technology","tag-database","tag-html","tag-ios","tag-ios-10","tag-javascript","tag-mac","tag-macos-10-12","tag-safari","tag-web","tag-webkit"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/17568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=17568"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/17568\/revisions"}],"predecessor-version":[{"id":17569,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/17568\/revisions\/17569"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=17568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=17568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=17568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}