<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>27164</bug_id>
          
          <creation_ts>2014-10-24 19:52:30 +0000</creation_ts>
          <short_desc>API to cancel &lt;meta refresh&gt;, so that XHTML content can use it as a script fallback</short_desc>
          <delta_ts>2015-08-14 13:21:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WHATWG</product>
          <component>HTML</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>https://html.spec.whatwg.org/#attr-meta-http-equiv-refresh</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>Needs Impl Interest</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>annevk</cc>
    
    <cc>ian</cc>
    
    <cc>master.skywalker.88</cc>
    
    <cc>mike</cc>
          
          <qa_contact>contributor</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>113732</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2014-10-24 19:52:30 +0000</bug_when>
    <thetext>Specification: https://html.spec.whatwg.org/multipage/semantics.html
Multipage: https://html.spec.whatwg.org/multipage/#attr-meta-http-equiv-refresh
Complete: https://html.spec.whatwg.org/#attr-meta-http-equiv-refresh
Referrer: 

Comment:
Is there any known or planned way for Javascript to read and/or change the
refresh time or the destination URI, so that the reload action can be
prevented and a more tailored action set in place (e.g. a section reload via
AJAX)?

Posted from: 62.211.148.20
User agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113803</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-10-27 20:39:11 +0000</bug_when>
    <thetext>Can&apos;t you just read the attribute directly?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115576</commentid>
    <comment_count>2</comment_count>
    <who name="Andrea Rendine">master.skywalker.88</who>
    <bug_when>2014-11-26 23:13:08 +0000</bug_when>
    <thetext>I&apos;m not just talking about the attribute value. It can be changed, or removed altogether, without affecting the behavior of the page. So reading it is unreliable.
But I also wanted to now if there&apos;s a way to change the reload time, e.g. to delay it, or remove the instruction.
This is the scenario I have in mind: a page whose content changes over time and a meta refresh tag to enable such a reload in a very basic way (also working if JS is disabled). Then the possibility for the script to read the reload value, use it as a variable for an AJAX content load/refresh. Of course the complete reload of the page is now useless, so it should be &quot;stopped&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115635</commentid>
    <comment_count>3</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-11-28 04:12:48 +0000</bug_when>
    <thetext>Just have the meta refresh for when there&apos;s no script, and when there is script, remove it and do it all directly from script.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115672</commentid>
    <comment_count>4</comment_count>
    <who name="Andrea Rendine">master.skywalker.88</who>
    <bug_when>2014-11-28 16:12:21 +0000</bug_when>
    <thetext>It means relying on the &lt;noscript&gt; tag, I guess. I just wanted to know if there&apos;s an alternative way (i.e. XHTML proof). But I think it has to be solved in other ways.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>115756</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-12-01 19:20:42 +0000</bug_when>
    <thetext>Ah, right, because removing the element dynamically won&apos;t cause the refresh to change... interesting. Yeah, &lt;noscript&gt; is probably the way to go for now.

An API would indeed help in the XHTML case. Not sure it&apos;s compelling enough to convince implementors to add this, though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122577</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-08-13 07:17:59 +0000</bug_when>
    <thetext>No, XHTML is not compelling enough. Sorry. Thanks for the suggestion though, Andrea!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122615</commentid>
    <comment_count>7</comment_count>
    <who name="Andrea Rendine">master.skywalker.88</who>
    <bug_when>2015-08-14 13:17:21 +0000</bug_when>
    <thetext>I guess this means not being able to use &lt;meta refresh&gt; as a fallback in modern sites, when these sites are both modern as they implement AJAX content refresh AND an XML markup architecture, at least unless &lt;noscript&gt; becomes somehow part of XHTML. 
I strongly believed in it, as some beginners still think that removing &lt;meta refresh&gt; stops page reloading. So I tried. :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122616</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-08-14 13:21:27 +0000</bug_when>
    <thetext>A modern site should not use XHTML.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>