[英]How to parse html links beginning with `./`
是以./
開頭的錨href,應該被解析為名稱為的文件夾.
或作為相對於當前根的路徑?
RFC1808表示,無論它們在路徑中的什么位置,都應忽略它們。
All occurrences of "./", where "." is a complete path segment, are removed.
If the path ends with "." as a complete path segment, that "." is removed.
這意味着諸如./folder/file.txt
的鏈接將變為folder/file.txt
,這是相對於當前目錄的路徑,應該這樣處理。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.