[Webkit-unassigned] [Bug 30303] <img src=""> requests main document resource unnecessarily

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 26 22:00:05 PST 2009


https://bugs.webkit.org/show_bug.cgi?id=30303





--- Comment #11 from Nicholas C. Zakas <webkit at nczonline.net>  2009-11-26 22:00:05 PST ---
Despite obeying normative URL rules, I still think this is a bug. I can't think
of a reason why anyone would write <img src="">, <script src="">, or <link
href=""> except by accident (most likely, the failing of a dynamically-created
page). I'd submit that any empty string for an external resource is an invalid
URI and therefore should be ignored. There are enough alternatives that if the
author intends to load the current page, it can still easy be done, such as
<img src="/"> or <img src="#">.

<iframe src=""> ignores the empty source in WebKit currently, so it seems that
this behavior isn't evenly applied even within WebKit. Opera doesn't have this
problem with <img>, <script>, or <link>. Firefox behaves the same as WebKit. IE
only has this problem for <img> but not for <script> or <link>.

This issue causes a lot of problems for developers, so it would be good to
address it.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list