Closed Bug 673934 Opened 13 years ago Closed 13 years ago

Hidden page reload when using empty background URL css property

Categories

(Core :: DOM: Core & HTML, defect)

5 Branch
All
Other
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 339112

People

(Reporter: aaaaa, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
Build ID: 20110615151330

Steps to reproduce:

I created this page:

<style>
.obj {background:url('')}
</style>
<DIV class=obj></DIV>


Actual results:

Using "Live http headers" extensions I see that the page is loaded 2 times. This can cause big problems, for example setting random session variables with ASP pages.


Expected results:

It should have loaded just one time.
Attachment #548193 - Attachment mime type: text/plain → text/html
I know there's a bug somewhere about this issue, similarly for <img src="">. ISTR that this is technically the correct behavior, but that other browser have changed to ignore it as being a common mistake.
Component: General → DOM
Product: Firefox → Core
QA Contact: general → general
Whiteboard: dupeme
Bug 339112 is the dupe target.   Bug 444931 fixed <img src="">.

Chrome 14 also loads it twice, IE 10 and Opera 11.50 does not.
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Whiteboard: dupeme
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: