Pod::Html - correctly link to =item's on the same page
[p5sagit/p5-mst-13.2.git] / lib / Pod / t / htmllink.t
1 #!/usr/bin/perl -w                                         # -*- perl -*-
2
3 BEGIN {
4     chdir 't' if -d 't';
5     unshift @INC, '../lib';
6     unshift @INC, '../lib/Pod/t';
7     require "pod2html-lib.pl";
8 }
9
10 use strict;
11 use Test::More tests => 1;
12
13 TODO: {
14     local $TODO = "item 2 doesn't work as expected";
15     convert_n_test("htmllink", "html links");
16 }
17
18 __DATA__
19 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
20 <html xmlns="http://www.w3.org/1999/xhtml">
21 <head>
22 <title>htmllink - Test HTML links</title>
23 <link rev="made" href="mailto:" />
24 </head>
25
26 <body style="background-color: white">
27
28 <p><a name="__index__"></a></p>
29 <!-- INDEX BEGIN -->
30
31 <ul>
32
33         <li><a href="#name">NAME</a></li>
34         <li><a href="#links">LINKS</a></li>
35         <li><a href="#targets">TARGETS</a></li>
36         <ul>
37
38                 <li><a href="#section1">section1</a></li>
39                 <li><a href="#section_2">section 2</a></li>
40                 <li><a href="#section_three">section three</a></li>
41         </ul>
42
43 </ul>
44 <!-- INDEX END -->
45
46 <hr />
47 <p>
48 </p>
49 <h1><a name="name">NAME</a></h1>
50 <p>htmllink - Test HTML links</p>
51 <p>
52 </p>
53 <hr />
54 <h1><a name="links">LINKS</a></h1>
55 <p><a href="#section1">section1</a></p>
56 <p><a href="#section_2">section 2</a></p>
57 <p><a href="#section_three">section three</a></p>
58 <p><a href="#item_item1">item1</a></p>
59 <p><a href="#item_item_2">item 2</a></p>
60 <p><a href="#item_item_three">item three</a></p>
61 <p><a href="#section1">section1</a></p>
62 <p><a href="#section_2">section 2</a></p>
63 <p><a href="#section_three">section three</a></p>
64 <p><a href="#item_item1">item1</a></p>
65 <p><a href="#item_item_2">item 2</a></p>
66 <p><a href="#item_item_three">item three</a></p>
67 <p><a href="#section1">section1</a></p>
68 <p><a href="#section_2">section 2</a></p>
69 <p><a href="#section_three">section three</a></p>
70 <p><a href="#item_item1">item1</a></p>
71 <p><a href="#item_item_2">item 2</a></p>
72 <p><a href="#item_item_three">item three</a></p>
73 <p><a href="#section1">text</a></p>
74 <p><a href="#section_2">text</a></p>
75 <p><a href="#section_three">text</a></p>
76 <p><a href="#item_item1">text</a></p>
77 <p><a href="#item_item_2">text</a></p>
78 <p><a href="#item_item_three">text</a></p>
79 <p><a href="#section1">text</a></p>
80 <p><a href="#section_2">text</a></p>
81 <p><a href="#section_three">text</a></p>
82 <p><a href="#item_item1">text</a></p>
83 <p><a href="#item_item_2">text</a></p>
84 <p><a href="#item_item_three">text</a></p>
85 <p><a href="#section1">text</a></p>
86 <p><a href="#section_2">text</a></p>
87 <p><a href="#section_three">text</a></p>
88 <p><a href="#item_item1">text</a></p>
89 <p><a href="#item_item_2">text</a></p>
90 <p><a href="#item_item_three">text</a></p>
91 <p>
92 </p>
93 <hr />
94 <h1><a name="targets">TARGETS</a></h1>
95 <p>
96 </p>
97 <h2><a name="section1">section1</a></h2>
98 <p>This is section one.</p>
99 <p>
100 </p>
101 <h2><a name="section_2">section 2</a></h2>
102 <p>This is section two.</p>
103 <p>
104 </p>
105 <h2><a name="section_three">section three</a></h2>
106 <p>This is section three.</p>
107 <dl>
108 <dt><strong><a name="item_item1">item1</a></strong><br />
109 </dt>
110 <dd>
111 This is item one.
112 </dd>
113 <p></p>
114 <dt><strong><a name="item_item_2">item 2</a></strong><br />
115 </dt>
116 <dd>
117 This is item two.
118 </dd>
119 <p></p>
120 <dt><strong><a name="item_item_three">item three</a></strong><br />
121 </dt>
122 <dd>
123 This is item three.
124 </dd>
125 <p></p></dl>
126
127 </body>
128
129 </html>