Skip Menu |

This queue is for tickets about the WWW-Scripter CPAN distribution.

Report information
The Basics
Id: 85673
Status: open
Priority: 0/
Queue: WWW-Scripter

People
Owner: Nobody in particular
Requestors: lxp [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: honour "meta refresh" client-side redirects
When a browser encounters a "meta refresh" tag in the document's head, the browser automatically advances to the page described within the tag. WWW::Scripter should probably also honour this tag. If this is done, test t/rt-84472.t should be rewritten to use this functionality instead of requiring the external JavaScript plugin.
On Tue May 28 06:34:11 2013, LXP wrote: Show quoted text
> When a browser encounters a "meta refresh" tag in the document's head, > the browser automatically advances to the page described within the tag. > > WWW::Scripter should probably also honour this tag. > > If this is done, test t/rt-84472.t should be rewritten to use this > functionality instead of requiring the external JavaScript plugin.
A long time ago I jotted down some notes to myself. I don’t have time to implement this right now, nor am I even sure I understand my own notes:-) Refresh headers In these regexps, \s means [ \t\n\f\r] and \d means [0-9]. If another valid http-equiv has been encountered, do nothing. Only meta elements whose content attribute’s value matches /^\s*(\d+)/ are valid. /^\s*(\d[.\d]+)/g if it matches /\G\s*;\s*[Uu][Rr][Ll]\s*('[^'](?<!\s)\s*'|"[^"](?<!\s)\s*"|.*(?<!\s))/s, then we use that as the URL. Otherwise we use "". $url =~ s l\t\cm\cjllg; Set the timeout from when the document has finished being parsed.