Image source with http:/ (only one slash)
Friday, 17. April 2009, 12:03:52
Just came across a HTML 4.01 Strict Web page with an image tag, however the image didn't display in Opera. What's going on here?
Then I reluctantly start up IE, visit the page and ... no image??? Surely the publisher of this page didn't upload it and forget to verify everything was working correct. A home page with a hyperlinked big image. C'mon!
Maybe the publisher is one of those Firefox nuts. Load the page in Firefox and lo and behold: a big image loads. Hmm. Safari loads the image, too.
View source. IMG tag has a src of "http:/domain.com/image.jpg" (only one slash, not two)
Paste whole image URI in the address bar and all browsers will convert the one slash to two slashes. It seems Firefox and Safari will do the conversion for a HTML src attribute as well, even with a Strict doctype.
Which way is correct? Sounds like a dilemma for the HTML 5 spec guys. Anne van Kesteren!
Then I reluctantly start up IE, visit the page and ... no image??? Surely the publisher of this page didn't upload it and forget to verify everything was working correct. A home page with a hyperlinked big image. C'mon!
Maybe the publisher is one of those Firefox nuts. Load the page in Firefox and lo and behold: a big image loads. Hmm. Safari loads the image, too.
View source. IMG tag has a src of "http:/domain.com/image.jpg" (only one slash, not two)
Paste whole image URI in the address bar and all browsers will convert the one slash to two slashes. It seems Firefox and Safari will do the conversion for a HTML src attribute as well, even with a Strict doctype.
Which way is correct? Sounds like a dilemma for the HTML 5 spec guys. Anne van Kesteren!







