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 25407 - To improve interop, allow <meta> refresh content attribute to have "url=" part optional
Summary: To improve interop, allow <meta> refresh content attribute to have "url=" par...
Status: RESOLVED FIXED
Alias: None
Product: HTML WG
Classification: Unclassified
Component: HTML5 spec (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P0 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: HTML WG Bugzilla archive list
URL:
Whiteboard: whatwg-resolved
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-21 20:30 UTC by Travis Leithead [MSFT]
Modified: 2016-04-25 20:29 UTC (History)
4 users (show)

See Also:


Attachments

Description Travis Leithead [MSFT] 2014-04-21 20:30:51 UTC
From a live site issue, we found that to be interoperable with Firefox and Chrome, we have to make the "url=" part of the content attribute optional. For example, sites will have the following syntax and expect to be "refreshed" to the specified URL:

<meta http-equiv="refresh" content="0;https://sourceforge.net/" />

Per the current spec text (steps 12-17 of the meta refresh processing steps (http://www.w3.org/html/wg/drafts/html/master/document-metadata.html#attr-meta-http-equiv-refresh)

     "If the character in input pointed to by position
     is a "U" (U+0055) character or a U+0075 LATIN SMALL LETTER U character
     (u), then advance position to the next character. Otherwise, jump to the
     last step.

     If the character in input pointed to by position
     is a "R" (U+0052) character or a U+0072 LATIN SMALL LETTER R character
     (r), then advance position to the next character. Otherwise, jump to the
     last step.

     If the character in input pointed to by position
     is s "L" (U+004C) character or a U+006C LATIN SMALL LETTER L character
     (l), then advance position to the next character. Otherwise, jump to the
     last step.

     Skip whitespace.

     If the character in input pointed to by position
     is a "=" (U+003D), then advance position to the next character.
     Otherwise, jump to the last step.

     Skip whitespace."

Jumping to the last step means that no url is parsed and the wrong thing happens. These steps need to be optional and still allow a URL following the number token to be parsed.
Comment 1 Michael[tm] Smith 2015-06-16 10:08:22 UTC
Agree that it would be good to have a spec change here, and raising priority after reviewing implementer feedback.
Comment 2 Simon Pieters 2015-10-20 12:07:53 UTC
https://github.com/whatwg/html/pull/246
Comment 3 Simon Pieters 2015-10-20 12:09:33 UTC
Hmm, reopening since this wasn't the whatwg component.
Comment 4 Simon Pieters 2015-11-18 21:40:04 UTC
(PR merged in whatwg/html)
Comment 5 Travis Leithead [MSFT] 2016-04-25 20:29:36 UTC
Yea! Fixed via WHATWG PR.