Use XHTML 1.0 Transitional instead of Strict.
[irspy-moved-to-github.git] / web / htdocs / help.html
1 %# $Id: help.html,v 1.2 2006-12-04 15:41:23 mike Exp $
2 <%args>
3 $help
4 </%args>
5 <%doc>
6 For some totally irrational, retarded and undocumented reason, the <a>
7 element in XHTML 1.0 Strict does not have the "target" element, so
8 instead I have to use XHTML 1.0 Transitional.  Well, great.  If you
9 enjoy reading TOTALLY unhelpful answers, try
10         http://www.w3.org/MarkUp/2004/xhtml-faq#target
11 which says:
12
13         Why was the target attribute removed from XHTML 1.1?
14
15         It wasn't. XHTML 1.0 comes in three versions: strict,
16         transitional, and frameset. All three of these were
17         deliberately kept as close as possible to HTML 4.01 as
18         XML would allow. XHTML 1.1 is an updated version of
19         XHTML 1.0 strict, and no version of HTML strict has
20         ever included the target attribute. The other two
21         versions, transitional and frameset, were not updated,
22         because there was nothing to update. If you want to
23         use the target attribute, use XHTML 1.0 transitional.
24
25 And, yes, this is the ONLY mention of "target" in the W3C's FAQ.
26
27 If you want slightly more information, a thread at
28         http://www.thescripts.com/forum/thread96361.html
29 asks and answers the question:
30
31         If this attribute is indeed deprecated, which seems to
32         be the case, is there an alternative to
33         target="_blank" to open hyperlinks in a new/blank
34         window?
35
36         Not that I know of, other than using javascript.
37
38 Nice one, W3C!  Way to improve portability!
39 </%doc>
40 <?xml version="1.0" encoding="ISO-8859-1"?>
41 <!DOCTYPE html 
42      PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
43     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
44 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
45  <head>
46   <title>IRSpy help: <% $help %></title>
47   <style type="text/css">
48    body { background: #ffffc0; font-size: small }
49    ul.gappy li { margin-top: 1em }
50   </style>
51   <script type="text/JavaScript">
52    function sendOpener (relativeURI) {
53     /*alert(opener.document.location.host + relativeURI);*/
54     opener.document.location = relativeURI;
55    }
56   </script>
57  </head>
58  <body>
59   <h1>IRSpy help: <% $help %></h1>
60 % $m->comp("/help/$help.html");
61   <p>
62    <input type="button" onclick="self.close()" value="OK"/>
63   </p>
64  </body>
65 </html>