Context-aware document object