|
|
|
|
|
Re: But this is a debug bug? [message #47260 is a reply to message #46791] |
Tue, 28 August 2007 14:16 |
Eclipse User |
|
|
|
Originally posted by: cryogenesis.gmail.com
Are you opening this in a browser?
Maybe the empty src makes the browser think that the image url is the
current page, thus making a second request to the server. A look at the
apache logs might point to this.
Rafael
On 28/8/2007 03:37, Fabio wrote:
> Try this code in a simple php file:
>
> <?php
>
> echo("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"");
> echo("\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">");
> echo("<html>");
> echo("<head>");
> echo("<title>Test page</title>");
> echo("<body'>");
> echo(" <img name='Image' id='image' src='' />");
> echo("</body>");
> echo("</html>");
>
> ?>
>
> Put a breakpoint on a line and run the debug (XDebug).
>
> The page is loaded and debugged 2(!) times (if you press the F8 you can see
> that the debugger stops on the single breakpoint 2 times).
>
> This if the image "src" is empty, if it is valued (also with an invalid
> image path) all works well.
>
> Debug bug or what?
> We need to post the bug to bugzilla?
>
> Thanks
>
>
|
|
|
|
|
Re: But this is a debug bug? [message #47388 is a reply to message #47302] |
Tue, 28 August 2007 15:29 |
Eclipse User |
|
|
|
Originally posted by: smserg.bk.ru
Well, AFAIK empty url is url of current page. This bug is not in
firefox, but in html code.
Fabio wrote:
> "Dave Kelsey" <dkel50@hotmail.com> ha scritto nel messaggio
> news:fb1but$cv5$1@build.eclipse.org...
>
>> How about that, I never thought it might be the browser. I tried it under
>> Internet Explorer 6 and didn't get the problem. So it looks like this is
>> an issue with FireFox.
>
> Uh!
> It seems so!
> I use Firefox, and it produce this kind of *useful* bug :)
> If I try with IE all goes right.
>
> So is a Firefox bug, not a PDT bug.
>
> Right? :)
>
>
|
|
|
|
Re: But this is a debug bug? [message #47476 is a reply to message #47447] |
Tue, 28 August 2007 17:13 |
Eclipse User |
|
|
|
Originally posted by: Martin.eisengardt.de
Reloading an empty URL is undefined even if one is trying to redirect to an
empty url. You might speak of a firefox bug since W3 and RFC 1738/1808/2396
define empty Strings to be invalid.
This "feature" should be posted at firefox group. IE simply defines this to
be illegal and automatically shows a "dead" image bitmap. Javascript covers
an empty URL at IE and the current URL at firefox.
Somehow strange and senseless.
|
|
|
|
Re: But this is a debug bug? [message #47597 is a reply to message #47570] |
Wed, 29 August 2007 05:42 |
Eclipse User |
|
|
|
Originally posted by: Martin.eisengardt.de
4.2. Same-document References
RFC says:
A URI reference that does not contain a URI is a reference to the
current document. In other words, an empty URI reference within a
document is interpreted as a reference to the start of that document,
and a reference containing only a fragment identifier is a reference
to the identified fragment of that document. Traversal of such a
reference should not result in an additional retrieval action.
However, if the URI reference occurs in a context that is always
intended to result in a new request, as in the case of HTML's FORM
element, then an empty URI reference represents the base URI of the
current document and should be replaced by that URI when transformed
into a request.
OK, made a mistake. But speaking of IMG it is somehow senseless. Now its
some ie bug? :-) It's difficult. Following code should mean the same?
<a href=""> vs. <a> vs. <a href="#">
Because this alters from RFC definition above since it must not result in
any new request (at least the last example should not) but should leed to
page top?
Maybe I am wrong but maybe W3 should define this img behaviour. IMHO this
img behaviour is undefined.
Maybe this newsgroup should not discuss a W3 definition or missing W3
definition ;-)
|
|
|
Powered by
FUDForum. Page generated in 0.03553 seconds