protected function acceptFrame($tag) { if ($this->isLoadingFrames()) { if ($tag->getAttribute('src')) { $this->loading_frames[] = $tag; } } }