document URL can be a file URL, too