Android 浏览器对 HTML5 的支持情况

Android 4.0 用的还是 Android 浏览器而不是 Chrome。Google 称 Chrome 将是 Android 以后的浏览器,但 4.0 还不是。

智能手机和平板的合并

Android 4.0 合并了智能手机和平板电脑两个版本,因此智能手机直接从 2.3 版本跳到 4.0 ,因此也就包含了 3.x 中浏览器的特性:

  • SVG
  • 运动传感器 API (加速度计和陀螺仪)
  • CSS3 的三维转换效果
  • XHR 2 & CORS
  • File API
  • HTML 媒体捕获 API,用于摄像头和麦克风
  • 二进制数组 (Int16Array, Float32Array, etc.)

Android 4.0 依然缺失的特性

不行的是 Android 还是缺失了一些在 Chrome 和 iOS5 上已经有的特性,包括:

  • No Server-sent events (BTW, does anybody use it?)
  • No WebSockets
  • No WebWorkers
  • No IndexedDB
  • No Web Notifications (that is a real shame for this platform – Firefox on Android is doing it-)
  • No WebGL
  • No History Management API
  • No rich input controls!



新成员

  • Navigation Timing API, same API in IE9 on Windows Phone and in Firefox 7 for Android
  • 全新的控制台 API, 但似乎有些问题,例如 console.memory.usedJSHeapSize 和 console.memory.totalJSHeapSize属性以及一些新的函数无法工作
  • The HTML5 <keygen> new form is available
  • 支持基本的 MathML



New things to know

该浏览器提供了一些新的用户特性,可改变网站的工作方式:

  • 新的未命名 Tab
  • New “Labs” section where the user can add full-screen webapp support on the browser and some gestures over the browser (similar to Firefox for Android)
  • New “Request Desktop site” feature that I’m not sure exactly everything it does, but it changes the User Agent at least.


性能

Android 浏览器问题多多,特别是在性能方面。而 Google 在其官方文档中强调 4.0 的浏览器使用更新的 V8 JavaScript 引擎,因此速度快多了,新引擎将有 35-550%的性能提升。

Andriod 内核对比

 


posted @ 2016-11-10 15:56  江晓曼博客园  阅读(422)  评论(0编辑  收藏  举报