I came across this Android WebView function WebSettings.setDomStorageEnabled(true)
and from the name alone I can infer that it simply "enables DOM storage".
The Android documentation, however, suggests something slightly different:
Set whether the DOM storage API is
enabled.
IOW, it enables the API rather than the storage itself.
My problem is... I didn't know about the existence of such an API until I encountered this function.
My Google search suggests that this API is closely associated with HTML5.
- Does that mean that this function is
irrelevant to web sites/pages that
do not use HTML5? IOW, does it
affect existing non-HTML5 page
loading & rendering at all?
- Where can I learn more about the DOM
storage API?
- In particular, are there any gotchas
or caveats that I need to watch for
when calling
WebSettings.setDomStorageEnabled(true)
in an Android app?
- Why is it disabled by default?
Update: I now can at least answer question #2: It turns out that the common name for "DOM Storage" is "Web Storage" and there is an entire Wikipedia article about this: http://en.wikipedia.org/wiki/Web_Storage
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…