String DOMApplicationCache::item(unsigned item, ExceptionCode& ec) { ApplicationCache* cache = associatedCache(); if (!cache) { ec = INVALID_STATE_ERR; return String(); } if (item >= length()) { ec = INDEX_SIZE_ERR; return String(); } return cache->dynamicEntry(item); }