Yup, that figures.  If you put an img tag with an empty string as src
into a browser, they all behave differently:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml";>
        <head>
                <title>Generic Test Page</title>
                <style type="text/css">
                        <!--
                                *               { color:inherit; 
background-color:inherit; border-
color:inherit; }
                                html    { color:#FFFFFF; 
background-color:#330000; }
                        -->
                </style>
        </head>
        <body
onload="javascript:alert(document.getElementById('NullSrc').src);">
                <h1>Generic Test Page</h1>
                <img src="" id="NullSrc" alt="Empty image src property test"
title="Empty image src property test">
        </body>
</html>

When I run this on the browsers I have available for testing, FF3
gives you the page URL, IE the directory of the page, and only Opera 9
correctly gives you an empty string.  Note that, AFAICT, FF and IE are
actually *replacing* the empyty URL with the values given above.

On 26 Mar, 21:47, amattie <[email protected]> wrote:

> 1) In IE, an extra request is issued for the directory containing the
> file.
> 2) In WebKit, an extra request is issued for the page hosting the
> malfunctioning script or img tag.
> 3) In Firefox 3.6, no extra requests are issued.

-- 
You received this message because you are subscribed to the Google Groups 
"Google AJAX APIs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-ajax-search-api?hl=en.

Reply via email to