Closed alexdutton closed 10 years ago
The RFC says that the path "" points at the original document. However, passing [] to from_parts() results in a path of "/" (the same as when one passes [""]. This makes the empty list produce a pointer for the empty path.
""
[]
from_parts()
"/"
[""]
I've just added a test that makes sure that paths and parts each round-trip. Previously this test would have failed.
Merged, thanks :)
The RFC says that the path
""
points at the original document. However, passing[]
tofrom_parts()
results in a path of"/"
(the same as when one passes[""]
. This makes the empty list produce a pointer for the empty path.