Add special case for fromDocument event capturing