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.