1 %# $Id: help.html,v 1.5 2006-12-06 14:07:17 mike Exp $
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
13 Why was the target attribute removed from XHTML 1.1?
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.
25 And, yes, this is the ONLY mention of "target" in the W3C's FAQ.
27 If you want slightly more information, a thread at
28 http://www.thescripts.com/forum/thread96361.html
29 asks and answers the question:
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
36 Not that I know of, other than using javascript.
38 Nice one, W3C! Way to improve cross-browser portability!
40 <?xml version="1.0" encoding="ISO-8859-1"?>
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">
46 <title>IRSpy help: <% $help %></title>
47 <style type="text/css">
48 body { background: #ffffc0 }
49 h1 { background: #d4e7f3; padding: 0.25em 0.5em;
50 font-size: 150%; text-align: center }
51 ul.gappy li { margin-top: 1em }
52 .small { font-size: small }
54 <script type="text/JavaScript">
55 function sendOpener (relativeURI) {
56 %# alert(opener.document.location.host + relativeURI);
57 opener.document.location = relativeURI;
62 <h1>IRSpy help: <% $help %></h1>
64 my @path = split /\//, $help;
65 foreach my $i (0 .. $#path) {
66 my $partialPath = join("/", @path[0..$#path-$i]);
67 eval { $m->comp("/help/$partialPath.html") };
68 print " <p>[No help for '$partialPath']</p>\n" if $@;
71 <p style="text-align: center">
72 <input type="button" onclick="self.close()" value="OK"/>