/[suikacvs]/www/test/html/head/head-by-script-and-parser-1.html.cgi
Suika

Contents of /www/test/html/head/head-by-script-and-parser-1.html.cgi

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Nov 13 05:33:14 2010 UTC (14 years, 8 months ago) by wakaba
Branch: MAIN
CVS Tags: HEAD
New tests; see <http://suika.fam.cx/%7Ewakaba/wiki/sw/n/HTML%E3%81%AE%E3%83%AC%E3%83%B3%E3%83%80%E3%83%AA%E3%83%B3%E3%82%B0%E3%81%AE%E9%96%8B%E5%A7%8B> for results

1 #!/usr/bin/perl
2 use strict;
3 use warnings;
4
5 $| = 1;
6
7 print qq[Content-Type: text/html; charset=utf-8
8
9 <!DOCTYPE HTML>
10 <html style="border: blue 0.5em solid; padding: 0.5em; cursor: pointer"
11 onclick="
12 var head = document.createElement ('head');
13 head.setAttribute ('style', 'border: orange 0.5em solid; padding: 0.5em; display: block; margin: 0.5em');
14 head.setAttribute ('data-source', 'html/\@onclick');
15 document.documentElement.appendChild (head);
16 ">];
17
18 sleep 2;
19
20 print qq[<head data-source="html/head" style="border: blue 0.5em solid; padding: 0.5em; display: block; margin: 0.5em">];
21
22 sleep 2;
23
24 print q[<body style="border: blue 0.5em solid; padding: 0.5em; margin: 0.5em">];
25
26 sleep 2;
27
28 print q[<p><a href="javascript:alert (document.innerHTML || document.documentElement.outerHTML || document.documentElement.innerHTML)">Check DOM of this page!</a>];
29
30 print q[<p>] . rand;

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24