Another one for the HTML/ XHTML Code Smells: If you’re using realtive URLs inside your documents (which is pretty valid and can save you some bandwidth as well as it can save some hassles for mirroring a website) you should not let them start with “./”. Even though it is totally valid according to RFC 3986, some user agents had problems to properly handle those URLs in the past. Looks like some implementations of the path combination in such a relative way. Example of a faulty path combination:
base: /directory/index.html embed: ./dotexample.html result: /directory./dotexample.html
An RFC 1808 / RFC 3986 conform UA would resolve relative URLs properly and would not run into this problem. Since there is most often a way to relativly link those files that even save two bytes, you should consider to better take care to not let them start with
"./". The fix is to just not use it, so a plain
"" does the job:
base: /directory/index.html embed: nice.html result: /directory/nice.html
Take care. Some browsers even made kind of more esoteric moves here when using dots.