File: mix1.html

package info (click to toggle)
html2wml 0.4.11%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 816 kB
  • sloc: perl: 2,380; ansic: 56; makefile: 34; sh: 4
file content (114 lines) | stat: -rw-r--r-- 2,468 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!DOCTYPE PUBLIC html40 "-//W3C/html40.dtd">
<HTML>
<head>
<title>Html2Wml Test Document -- Typical page</title>
<link rel="stylesheet"  href="styles.css">
<style type="text/css">
TABLE.menu {
  border-style: none;
  padding: 0em;
  margin: 0em;
}

TABLE.menu TD.title {
  background-image: url(images/drawing_board/menu_background.gif);
  background-position: top left;
  background-attachment: fixed;
  background-repeat: no-repeat;
  text-align: center;
  font-weight: bold;
}

TABLE.menu TD {
  background-image: url(images/drawing_board/grid.jpg);
}

</style>
</head>

<body>

<h1>Html2Wml Test Document -- Typical page</h1>

<p>This page is supposed to contain most elements that most pages 
on the Internet usually contain: some CSS, a bit of JavaScript, a 
table. And some of the end tags are missing in order to test the 
syntax repair engine of Html2Wml. </p>

This text is not enclosed in a P nor in a DIV tag. It is a child 
of the BODY element. This is valid in HTML, but won't in WML. 

<p>This paragraph contains a link to <a 
href="http://maddingue.free.fr/techie/html2wml.html"
>Html2Wml home page</a>.

<p>This one contains an image. <img src="dog.jpg" 
alt="[image of a dog]">

<script language=JavaScript>
<!-- // Begin code
var ua = navigator.appVersion;

document.write("<p>a little bit of JavaScript</p>");
// End code -->
</script>

<p>Paragraph with a break between the two dashes -<br>- (this 
text should be on next line). </p>

<p>This is an incorrect paragraph: it has no closing tag.

<TABLE class="menu">
  <caption align="top">Table caption</caption>
  
  <tr>
   	<td class="title">Col 1</td>
   	<td class="title">Col 2
   	<td class="title">Col 3
  </tr>
  
  <tr>
   <td>case 1-1
   <td>case 2-1
   <td>case 3-1
  </tr>
  
  <tr>
   <td>case 1-2</td>
   <td>case 2-2</td>
   <td>case 3-2</td>
  </tr>
  
  <tr>
   <td>case 1-3</td>
   <td>case 2-3</td>
   <td>case 3-3</td>
  </tr>
</table>

<p>This following table is simpler than the previous but has a 
very ugly HTML code. (And this paragraph is closed twice). </p> </p>

<table>
<tr><td>Abc<td>Def<td>Ghi
<tr><td>Jkl<td>Mno<td>Pqr
</table>

<p>
    This paragraph is correct, but the <b>bold and <i>italic</b></i> 
    are inverted (this is BAD). 
</p>

<hr>

<p> Just before this paragraph, there was an horizontal rule (HR tag), 
but here is currently no way to render that. </p>

<Hr />

<div class="footer">
This text is in a DIV tag, not a P tag. 
</div>

</body>
</HTML>