JHTMLScanner Test Suite

# Attribute values

link

<>

# Fonts & Styles

bold bold bold plain
italic italic italic plain
underline underline underline plain
strike strike strike plain
`monospace `monospace` monospace` plain

big
strike
small
A subscript
A superscript
abbrev
acronym
au
cite
del
dfn
em
ins
`keyboard`
lang
person
quotation
`samp`
strong
var

It's all Greek to me: gdbg

large plain large bold

colors: RGB Gray25 Gray50 Gray75

Size 8

Size 7

Size 6

Size 5

Size 4

Size 3

Size 2

Size 1

Size 0

Interleaving is not allowed: italic bold-italic italic

Test of whitespace between styles:

plain strike plain underline plain

underline strike underline

strike underline strike

underline strike underline

# Headings

# Size 1

## Size 2

### Size 3

#### Size 4

##### Size 5

###### Size 6

#### underlined header

#### Intentional heading error:

# Lists

Directory:
- first
- second
- third
  test of indenting
- fourth

  test of horizontal rule
- fifth
- Nested directory:
- first
- second
- third
Menu:
- first
- second
- third
  test of indenting
- fourth

  test of horizontal rule
- fifth
- Nested menu:
- first
- second
- third
Ordered list:

1. first
2. second
3. third
   test of indenting
4. fourth

   test of horizontal rule
5. fifth
6. Nested ordered list:
   1. first
   2. second
   3. third
7. Nested unordered list:
   - first
   - second
   - third
8. Nested descriptive list:
   term 1
     definition 1
   term 2
     definition 2

Ordered list (3,4,6,7):

3. first
4. second
5. third
6. fourth

Unordered list:

- first
- second
- third
  test of indenting
- fourth

  test of horizontal rule
- fifth
- Nested unordered list:
  What happens to junk before the first list item?
  - first
  - second
  - third
- Nested ordered list:
  What happens to junk before the first list item?
  1. first
  2. second
  3. third
- Nested descriptive list:
  What happens to junk before the first list item?
  term 1
    definition 1
  term 2
    definition 2

Descriptive list:

term 1
  definition 1
term 2
  definition 2
term 3
test of indenting
  definition 3
  test of indenting
term 4

test of horizontal rule
  definition 4

  test of horizontal rule
term 5
  definition 5
Nested descriptive list:

term 1
  definition 1
term 2
  definition 2

  Nested descriptive list:
  term 1
    definition 1
  term 2
    definition 2
Nested ordered list (term):

1. first
2. second
3. third

  Nested unordered list (definition):
  - first
  - second
  - third

Styled list:

1. first
2. second
3. third

# Separators

paragraph 1

paragraph 2

line 1
line 2
line 3

text within div tag
text outside div tag

text between horizontal rules

# Preformatted text

This is normal text.

    	preformatted text
    	has
    	a specific        format
    	as far as spacing goes

This is normal text.

# Miscellaneous formatting

Address:
Blockquote:

> Genius is mysterious!

> > -- Dr. Sing

>     	This text is formatted
>     	 by <pre>

This text is not indented.

Code: `int foo(int x) { return x+1; }`

# Images

this is text followed by more text

# Escaped characters

F |  | F
t |  | t
less than | < | <
greater than | > | >
ampersand | & | &
A5 | ¥ | ¥
A8 | ¨ | ¨
AC | ¬ | ¬
AD |  |
AE | ® | ®
B0 | ° | °
D0 | Ð | Ð
F0 | ð | ð
double quote | " | "
A0 |  |
A2 | ¢ | ¢
A7 | § | §
A9 | © | ©
AA | ª | ª
AF | ¯ | ¯
B9 | ¹ | ¹
B2 | ² | ²
B3 | ³ | ³
B6 | ¶ | ¶
BA | º | º
C4 | Ä | Ä
CB | Ë | Ë
CF | Ï | Ï
D6 | Ö | Ö
DC | Ü | Ü
E4 | ä | ä
EB | ë | ë
EF | ï | ï
F6 | ö | ö
FC | ü | ü
FF | ÿ | ÿ
A1 | ¡ | ¡
A3 | £ | £
AB | « | «
B4 | ´ | ´
B5 | µ | µ
B8 | ¸ | ¸
BB | » | »
D7 | × | ×
C2 | Â | Â
C5 | Å | Å
C6 | Æ | Æ
CA | Ê | Ê
CE | Î | Î
D4 | Ô | Ô
DB | Û | Û
DE | Þ | Þ
DF | ß | ß
E2 | â | â
E5 | å | å
E6 | æ | æ
EA | ê | ê
EE | î | î
F4 | ô | ô
FB | û | û
FE | þ | þ
A4 | ¤ | ¤
A6 | ¦ | ¦
B1 | ± | ±
B7 | · | ·
BC | ¼ | ¼
BD | ½ | ½
BE | ¾ | ¾
BF | ¿ | ¿
C0 | À | À
C1 | Á | Á
C3 | Ã | Ã
C7 | Ç | Ç
C8 | È | È
C9 | É | É
CC | Ì | Ì
CD | Í | Í
D1 | Ñ | Ñ
D2 | Ò | Ò
D3 | Ó | Ó
D5 | Õ | Õ
D8 | Ø | Ø
D9 | Ù | Ù
DA | Ú | Ú
DD | Ý | Ý
E0 | à | à
E1 | á | á
E3 | ã | ã
E7 | ç | ç
E8 | è | è
E9 | é | é
EC | ì | ì
ED | í | í
F1 | ñ | ñ
F2 | ò | ò
F3 | ó | ó
F5 | õ | õ
F7 | ÷ | ÷
F8 | ø | ø
F9 | ù | ù
FA | ú | ú
FD | ý | ý

single ampersand | &
single ampersand, semi | &;
double ampersand | &&
ampersand a | &a;
ampersand # z | &#z
ampersand abc | &abc
ampersand abc (double) | &abc&abc;
random | &abc<>&abcdefghijklmnoprstuvwxyz
less than test | <test
case sensitivity | <&Lt&lT<
g; | g;

# Comments

`(no ouput is good output :)`

depth 1 -->

-->

Intentional comment error: -->