Yes, you could definitely do that. A good example would be an offline app.. Having said that, in a recent turn of events, iOS 5.x+ decided to make localStorage non-persistent... Ugh.
So ... what's the good of local storage, then...?
Why waste general-purpose storage on data browsers can already cache in various ways? The farthest I'd go is an offline manifest.