Commit | Line | Data |
6e38a594 |
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__ |
5d15cdb2 |
19 | <?xml version="1.0" ?> |
6e38a594 |
20 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
21 | <html xmlns="http://www.w3.org/1999/xhtml"> |
22 | <head> |
23 | <title>htmllink - Test HTML links</title> |
5d15cdb2 |
24 | <meta http-equiv="content-type" content="text/html; charset=utf-8" /> |
6e38a594 |
25 | <link rev="made" href="mailto:" /> |
26 | </head> |
27 | |
28 | <body style="background-color: white"> |
29 | |
30 | <p><a name="__index__"></a></p> |
31 | <!-- INDEX BEGIN --> |
32 | |
33 | <ul> |
34 | |
35 | <li><a href="#name">NAME</a></li> |
36 | <li><a href="#links">LINKS</a></li> |
37 | <li><a href="#targets">TARGETS</a></li> |
38 | <ul> |
39 | |
40 | <li><a href="#section1">section1</a></li> |
41 | <li><a href="#section_2">section 2</a></li> |
42 | <li><a href="#section_three">section three</a></li> |
43 | </ul> |
44 | |
45 | </ul> |
46 | <!-- INDEX END --> |
47 | |
48 | <hr /> |
49 | <p> |
50 | </p> |
51 | <h1><a name="name">NAME</a></h1> |
52 | <p>htmllink - Test HTML links</p> |
53 | <p> |
54 | </p> |
55 | <hr /> |
56 | <h1><a name="links">LINKS</a></h1> |
57 | <p><a href="#section1">section1</a></p> |
58 | <p><a href="#section_2">section 2</a></p> |
59 | <p><a href="#section_three">section three</a></p> |
60 | <p><a href="#item_item1">item1</a></p> |
61 | <p><a href="#item_item_2">item 2</a></p> |
62 | <p><a href="#item_item_three">item three</a></p> |
63 | <p><a href="#section1">section1</a></p> |
64 | <p><a href="#section_2">section 2</a></p> |
65 | <p><a href="#section_three">section three</a></p> |
66 | <p><a href="#item_item1">item1</a></p> |
67 | <p><a href="#item_item_2">item 2</a></p> |
68 | <p><a href="#item_item_three">item three</a></p> |
69 | <p><a href="#section1">section1</a></p> |
70 | <p><a href="#section_2">section 2</a></p> |
71 | <p><a href="#section_three">section three</a></p> |
72 | <p><a href="#item_item1">item1</a></p> |
73 | <p><a href="#item_item_2">item 2</a></p> |
74 | <p><a href="#item_item_three">item three</a></p> |
75 | <p><a href="#section1">text</a></p> |
76 | <p><a href="#section_2">text</a></p> |
77 | <p><a href="#section_three">text</a></p> |
78 | <p><a href="#item_item1">text</a></p> |
79 | <p><a href="#item_item_2">text</a></p> |
80 | <p><a href="#item_item_three">text</a></p> |
81 | <p><a href="#section1">text</a></p> |
82 | <p><a href="#section_2">text</a></p> |
83 | <p><a href="#section_three">text</a></p> |
84 | <p><a href="#item_item1">text</a></p> |
85 | <p><a href="#item_item_2">text</a></p> |
86 | <p><a href="#item_item_three">text</a></p> |
87 | <p><a href="#section1">text</a></p> |
88 | <p><a href="#section_2">text</a></p> |
89 | <p><a href="#section_three">text</a></p> |
90 | <p><a href="#item_item1">text</a></p> |
91 | <p><a href="#item_item_2">text</a></p> |
92 | <p><a href="#item_item_three">text</a></p> |
93 | <p> |
94 | </p> |
95 | <hr /> |
96 | <h1><a name="targets">TARGETS</a></h1> |
97 | <p> |
98 | </p> |
99 | <h2><a name="section1">section1</a></h2> |
100 | <p>This is section one.</p> |
101 | <p> |
102 | </p> |
103 | <h2><a name="section_2">section 2</a></h2> |
104 | <p>This is section two.</p> |
105 | <p> |
106 | </p> |
107 | <h2><a name="section_three">section three</a></h2> |
108 | <p>This is section three.</p> |
109 | <dl> |
27ad5321 |
110 | <dt><strong><a name="item_item1">item1</a></strong> |
111 | |
6e38a594 |
112 | <dd> |
27ad5321 |
113 | <p>This is item one.</p> |
6e38a594 |
114 | </dd> |
27ad5321 |
115 | </li> |
116 | <dt><strong><a name="item_item_2">item 2</a></strong> |
117 | |
6e38a594 |
118 | <dd> |
27ad5321 |
119 | <p>This is item two.</p> |
6e38a594 |
120 | </dd> |
27ad5321 |
121 | </li> |
122 | <dt><strong><a name="item_item_three">item three</a></strong> |
123 | |
6e38a594 |
124 | <dd> |
27ad5321 |
125 | <p>This is item three.</p> |
6e38a594 |
126 | </dd> |
27ad5321 |
127 | </li> |
128 | </dl> |
6e38a594 |
129 | |
130 | </body> |
131 | |
132 | </html> |