This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 6464 - Support meta refresh with quotes
Summary: Support meta refresh with quotes
Status: CLOSED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-21 14:52 UTC by Simon Pieters
Modified: 2010-10-04 14:30 UTC (History)
4 users (show)

See Also:


Attachments

Description Simon Pieters 2009-01-21 14:52:13 UTC
We found that IE8, Firefox and Safari support

   <meta name=refresh content="0; url='http://example.org/'">

and the following page relies on it:

   http://www.getacooljob.com/

so we're probably going to change our implementation to support quotes.
Comment 1 Philip Taylor 2009-01-21 15:36:10 UTC
Assuming you meant http-equiv (not name), this already seems to work for me in Opera (9.63).

I see quoted URLs on quite a few pages (out of 130K): http://philip.html5.org/data/meta-refresh-quotes.txt
Comment 2 Simon Pieters 2009-01-21 17:30:32 UTC
(Yes, I meant http-equiv of course, sorry.)

Upon closer inspection the cited page is lacking the closing ", meaning that there's trailing garbage in the attribute value (that Opera includes in the URL but other browsers don't).

So this should work:

   <meta http-equiv=refresh content="0; url='http://example.org/'foobar">
Comment 3 Ian 'Hixie' Hickson 2009-01-21 22:46:19 UTC
So your request is to check the URL for a leading ' or " character, and if there is one, truncate the URL starting from the next corresponding ' or " character?
Comment 4 Simon Pieters 2009-01-22 06:24:03 UTC
Yes, that would work. (Also strip the leading ' or " of course.)