html5 - prefixed - what does this means -
when run html5 compatibility test in android native browser see indexeddb support marked "prefixed", while in chrome , other marked "yes". understand chrome latest version has full support indexeddb indexeddb support "prefixed" means?
according mozilla page:
https://developer.mozilla.org/en-us/docs/web/api/indexeddb_api/using_indexeddb
"because specification still evolving, current implementations of indexeddb hide under browser prefixes. browser vendors may have different implementations of standard indexeddb api until specification has solidified. once consensus reached on standard, vendors implement without prefix tags. implementations have removed prefix: internet explorer 10, firefox 16, chrome 24. when use prefix, gecko-based browsers use moz prefix, while webkit-based browsers use webkit prefix."
as per josh's comment: use following statement ensure compatibility:
window.indexeddb = window.indexeddb || window.webkitindexeddb;
the characters 'webkit' prefix. might need use them in android, no longer need use them in chrome (a few years ago did)
Comments
Post a Comment