[whatwg] Inconsistent behavior for empty-string URLs
simonp at opera.com
Fri Dec 18 02:25:01 PST 2009
On Fri, 18 Dec 2009 01:51:44 +0100, Simon Pieters <simonp at opera.com> wrote:
> On Thu, 17 Dec 2009 22:58:03 +0100, Simon Pieters <simonp at opera.com>
>> I asked Philip to provide some data about pages using empty attributes
>> for these:
>> <Philip`> zcorpan: http://philip.html5.org/data/empty-url-attributes.txt
>> <Philip`> zcorpan:
>> I have not looked at these yet,
> (and still haven't, just made the data slightly more digestible)
I've now looked at a selection of random URLs.
Conclusion: None of these seem to need a request to be made. img should
fire an error event. iframe and frame should use about:blank.
>> but it would probably be good to do so before changing things, so we
>> have an idea what the compat impact is.
> <img src>, 3221 occurrences
Some pages use these as spacers.
<img alt="! Advanced Applet Suite"
align="left" border="0" vspace="3" hspace="5" width="32" height="32">
...which suggests that we need to fire an error event (the page works as
intended in Chrome and but has broken image boxes in Opera and Firefox).
<img alt="Stamp It" onerror="this.src='/icon.gif';" src="" align="left"
border="0" height="32" width="32">
<img src="" id="GlobalUserLogined_MyHeaderImg" />
...which seems like something that is filled in when the user is logged
in, maybe with script.
<img id="randomImage" src="" alt="Word Verification Image Loading, please
> <script src>, 248 occurrences
These seem to be mostly not-filled-in boiletplate.
> <iframe src>, 1862 occurrences
These seem to just want to get an about:blank iframe for various reasons.
> <video src>, 0 occurrences
> <video poster>, 0 occurrences
> <audio src>, 0 occurrences
> <object data>, 0 occurrences
> <embed src>, 74 occurrences
These seem to be not-filled-in object/embed plugin boilerplates. Not sure
if they need to invoke the plugin (from type or other) or not.
> <source src>, 0 occurrences
> <input src>, 55 occurrences
Not sure what to make of these. Some are not type=image, some seem to be
invisible submit buttons...
> <command icon>, 0 occurrences
> <html manifest>, 0 occurrences
> <applet code>, 0 occurrences
> <frame src>, 53 occurrences
Mostly a blank main frame getting filled in with script or by clicking a
link in another frame.
> <body background>, 1665 occurrences
Pages with no background image...
> <link rel=icon>, 243 occurrences
> <link rel=prefetch>, 0 occurrences
> <link rel=stylesheet>, 115 occurrences
More information about the whatwg