Show
Ignore:
Timestamp:
04/21/08 12:11:08 (6 years ago)
Author:
tokuhirom
Message:

html として valid っぽくしてみる

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Moxy/trunk/lib/Moxy.pm

    r10042 r10046  
    147147 
    148148    return sprintf(<<"..."); 
    149     <script> 
     149<?xml version="1.0" encoding="utf-8"?> 
     150<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     151<html lang="ja" xml:lang="ja" xmlns="http://www.w3.org/1999/xhtml"> 
     152<head> 
     153    <meta http-equiv="content-script-type" content="text/javascript" /> 
     154    <script type="text/javascript"> 
    150155        window.onload = function () { 
    151156            document.getElementById('moxy_url').focus(); 
    152157        }; 
    153158    </script> 
     159</head> 
     160<body> 
    154161    <form method="get" action="$base" onsubmit="location.href=location.href+encodeURIComponent(document.getElementById('moxy_url').value);return false;"> 
    155162        <input type="text" size="40" id="moxy_url" /> 
    156163        <input type="submit" value="go" /> 
    157164    </form> 
     165</body> 
     166</html> 
    158167... 
    159168}