Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
CSS "cursor: null" causes MSIE to request "null" file from server (discovered in BlockUI's Growl CSS)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jeremy Mikola  
View profile  
 More options Sep 8 2009, 6:49 pm
From: Jeremy Mikola <jmik...@gmail.com>
Date: Tue, 8 Sep 2009 15:49:20 -0700 (PDT)
Local: Tues, Sep 8 2009 6:49 pm
Subject: CSS "cursor: null" causes MSIE to request "null" file from server (discovered in BlockUI's Growl CSS)
I noticed from my web server logs that MSIE browsers (versions 6
through 8) were yielding tons of 404 errors by requesting a "null"
file in whatever directory the current request was being served out
of.  E.g. a homepage request would be followed by "/null", and a blog
request with "/blog/null".

I was able to narrow this down to the BlockUI plugin, and more
specifically, the GrowlUI function within it.  These growl alerts show
up on every page load, so it was explained why I saw so many 404's in
the logs.  Debugging the script to find the source of the "null"
requests was a lot harder, but I finally traced it down to the default
CSS used for the Growl overlays rendered by BlockUI.

Most BlockUI overlays assign:

    cursor: 'wait'

...via CSS, but the Growl overlay's default CSS replaces "wait" with
Javascript literal null.  Within the BlockUI install() function, which
sets up the overlays, this default CSS is merged with the optional
plugin argument and assigned in its object form with jQuery.css().
For some reason, all recent versions of MSIE seem to interpret the
null value of the "cursor" key as a string and end up hitting the
server's local directory for a file by that name.

I have no idea if URL's are actually permitted for the CSS cursor
property, but I'm familiar with the usual options of "wait", "help",
"move", etc.  In any event, I'd have expected any URL reference for a
CSS property to be wrapped in "url()", but I'll chalk this up as an
MSIE quirk (or undocumented feature).

I was able to fix this by swapping out literal null for "default",
which maintains the intended functionality of having a standard
cursor.

I'd hesitate to call this an important "bug", although it was for us
(these 404's were actually causing redirect loops in our webserver).
Moreover, this is probably something that would never come up in unit
tests, since I doubt MSIE's cursor file request happens completely
silently.  I do think it worthy of being patched in BlockUI, and
perhaps this could yield an upstream ticket for jQuery if the cursor
property requires special interpretation within the css() function.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mike Alsup  
View profile  
 More options Sep 9 2009, 8:16 am
From: Mike Alsup <mal...@gmail.com>
Date: Wed, 9 Sep 2009 05:16:58 -0700 (PDT)
Local: Wed, Sep 9 2009 8:16 am
Subject: Re: CSS "cursor: null" causes MSIE to request "null" file from server (discovered in BlockUI's Growl CSS)

> I was able to narrow this down to the BlockUI plugin, and more
> specifically, the GrowlUI function within it.  These growl alerts show
> up on every page load, so it was explained why I saw so many 404's in
> the logs.  Debugging the script to find the source of the "null"
> requests was a lot harder, but I finally traced it down to the default
> CSS used for the Growl overlays rendered by BlockUI.

Good catch, Jeremy!  This is now fixed in BlockUI v2.26.

http://www.malsup.com/jquery/block/#download


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jeremy Mikola  
View profile  
 More options Sep 9 2009, 11:01 am
From: Jeremy Mikola <jmik...@gmail.com>
Date: Wed, 9 Sep 2009 08:01:30 -0700 (PDT)
Local: Wed, Sep 9 2009 11:01 am
Subject: Re: CSS "cursor: null" causes MSIE to request "null" file from server (discovered in BlockUI's Growl CSS)
Thanks Mike, I'll grab the update immediately :)

Cross-referencing this with a jQuery ticket, in case this might also
be resolved within the "css" method as well: http://dev.jquery.com/ticket/5185

On Sep 9, 8:16 am, Mike Alsup <mal...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »