Increase speed in Document::createElement via once preg_match