Don't need to replace the file attribute.

The document was loaded from the filesystem and should return file as
the href is using it’s parent protocol.