5 For some totally irrational, retarded and undocumented reason, the <a>
6 element in XHTML 1.0 Strict does not have the "target" element, so
7 instead I have to use XHTML 1.0 Transitional. Well, great. If you
8 enjoy reading TOTALLY unhelpful answers, try
9 http://www.w3.org/MarkUp/2004/xhtml-faq#target
12 Why was the target attribute removed from XHTML 1.1?
14 It wasn't. XHTML 1.0 comes in three versions: strict,
15 transitional, and frameset. All three of these were
16 deliberately kept as close as possible to HTML 4.01 as
17 XML would allow. XHTML 1.1 is an updated version of
18 XHTML 1.0 strict, and no version of HTML strict has
19 ever included the target attribute. The other two
20 versions, transitional and frameset, were not updated,
21 because there was nothing to update. If you want to
22 use the target attribute, use XHTML 1.0 transitional.
24 And, yes, this is the ONLY mention of "target" in the W3C's FAQ.
26 If you want slightly more information, a thread at
27 http://www.thescripts.com/forum/thread96361.html
28 asks and answers the question:
30 If this attribute is indeed deprecated, which seems to
31 be the case, is there an alternative to
32 target="_blank" to open hyperlinks in a new/blank
35 Not that I know of, other than using javascript.
37 Nice one, W3C! Way to improve cross-browser portability!
39 <?xml version="1.0" encoding="ISO-8859-1"?>
41 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
42 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
43 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
45 <title>IRSpy help: <% $help %></title>
46 <style type="text/css">
47 body { background: #ffffc0 }
48 h1 { background: #d4e7f3; padding: 0.25em 0.5em;
49 font-size: 150%; text-align: center }
50 ul.gappy li { margin-top: 1em }
51 .small { font-size: small }
53 <script type="text/JavaScript">
54 function sendOpener (relativeURI) {
55 %# alert(opener.document.location.host + relativeURI);
56 opener.document.location = relativeURI;
61 <h1>IRSpy help: <% $help %></h1>
63 my @path = split /\//, $help;
64 foreach my $i (0 .. $#path) {
65 my $partialPath = join("/", @path[0..$#path-$i]);
66 eval { $m->comp("/help/$partialPath.html") };
67 print " <p>[No help for '$partialPath']</p>\n" if $@;
70 <p style="text-align: center">
71 <input type="button" onclick="self.close()" value="OK"/>