iOS 8 is finally here while the new iPhone 6 and iPhone 6 plus will appear in a few days. New APIs appears on scene, as well as new challenges to support the new screen sizes. I’ve been playing with the final version and here you have my findings.
31. Web Cryptography API
var data = new Uint8Array([0x00, 0x01, 0x02, 0x03, 0x04]);
var op = window.polycrypt.digest("SHA-256", data);
op.oncomplete = function(e) {
console.log( "Hash returned: " + e.target.result.toString() );
}
32.
33.
34. 3
New Safari features
Safari on iOS 8 has new features that might affect how our websites are rendered.
74. HTML Template Support
<template id="row"> <tr><td><td> </template>
var template = document.querySelector('#row'); var clone = template.content.cloneNode(true); var cells = clone.querySelectorAll('td'); cells[0].textContent = 'Joe'; cells[1].textContent = 'red';
HTML code:
JavaScript code: