04:34
<jsx>
Hello, when does readyState start being present on a dynamically loaded script tag?
04:34
<jsx>
(Happy New Year)
04:35
<jsx>
s/tag/element
18:03
<denisw>
Hi, I am wondering about how to replicate the resolution of relative img src URLs
18:04
<denisw>
In a page at http://example.com/index.html without <base>, an <img src="foo.png"> will load http://example.com/foo.png in all browsers I know. However, I don't see how (if?) this follows from the HTML spec
18:06
<denisw>
The only information I found is that relative URLs are resolved relative to the document base URL. But wouldn't that mean that http://example.com/index.html/foo.png would be loaded?
18:10
<denisw>
Nevermind, found the relevant part of the URL spec: "[set] url’s path to a copy of base’s path, and then remove url’s path’s last item, if any."