Skip to content

Commit 9658053

Browse files
committed
compare everything with real browsers
1 parent f89c97b commit 9658053

25 files changed

Lines changed: 579 additions & 0 deletions
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
(html
2+
(head
3+
)head
4+
(body
5+
"\n
6+
(article
7+
"\n
8+
(header
9+
"\n
10+
(h1
11+
"Article Title\n
12+
(nav
13+
"\n
14+
(a
15+
Ahref #
16+
"Link 1
17+
)a
18+
"\n
19+
(a
20+
Ahref #
21+
"Link 2
22+
)a
23+
"\n\n
24+
(section
25+
"\n
26+
(h2
27+
"Section Title\n
28+
(p
29+
"Content\n
30+
)p
31+
(aside
32+
"\n
33+
(p
34+
"Sidebar\n
35+
)p
36+
)aside
37+
"\n\n
38+
(footer
39+
"\n
40+
(p
41+
"Footer\n\n\n
42+
)p
43+
)footer
44+
)h2
45+
)section
46+
)nav
47+
)h1
48+
)header
49+
)article
50+
)body
51+
)html
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
(html
2+
(head
3+
)head
4+
(body
5+
"\n
6+
(li
7+
"Item outside list
8+
)li
9+
"\n
10+
(ul
11+
"\n
12+
(div
13+
"Div inside ul
14+
)div
15+
"\n
16+
(li
17+
"Item 1\n
18+
(p
19+
"Paragraph in li
20+
)p
21+
"\n
22+
)li
23+
(li
24+
"Item 2\n
25+
)li
26+
)ul
27+
"\n
28+
(ol
29+
"\nText directly in ol\n
30+
(li
31+
"Numbered item\n
32+
)li
33+
)ol
34+
"\n\n
35+
)body
36+
)html
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
(html
2+
(head
3+
)head
4+
(body
5+
"\n
6+
(div
7+
"Content\n
8+
(p
9+
"Paragraph
10+
)p
11+
)div
12+
"\n
13+
(strong
14+
"Bold\n\n
15+
)strong
16+
)body
17+
)html
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
(html
2+
(head
3+
)head
4+
(body
5+
"\n
6+
(div
7+
Aclass container
8+
Aid main
9+
"\n
10+
(a
11+
Ahref page.html
12+
Atarget _blank
13+
"Link
14+
)a
15+
"\n
16+
(input
17+
Atype text
18+
Aname username
19+
Avalue default
20+
)input
21+
"\n
22+
)div
23+
"\n\n
24+
)body
25+
)html
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
(html
2+
(head
3+
)head
4+
(body
5+
"\n
6+
(div
7+
"\n
8+
(section
9+
"\n
10+
(article
11+
"\n
12+
(h1
13+
"Title\n
14+
(p
15+
"Paragraph\n
16+
(span
17+
"Text\n\n
18+
)span
19+
)p
20+
)h1
21+
)article
22+
)section
23+
)div
24+
)body
25+
)html
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
(html
2+
(head
3+
)head
4+
(body
5+
"\n
6+
# Comment <!-- nested comment
7+
" -->\n
8+
(p
9+
"Content
10+
)p
11+
"\n\n
12+
)body
13+
)html
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
(html
2+
(HEAD
3+
(title
4+
"No head or body tags
5+
)title
6+
"\n
7+
)HEAD
8+
(BODY
9+
(p
10+
"Paragraph directly in html
11+
)p
12+
"\n
13+
(div
14+
"Div directly in html
15+
)div
16+
"\n
17+
)BODY
18+
)html
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
(HTML
2+
(head
3+
(title
4+
"No HTML tag
5+
)title
6+
)head
7+
(body
8+
"\n
9+
(p
10+
"This document has no HTML tag
11+
)p
12+
"\n
13+
)body
14+
)HTML
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
(html
2+
(head
3+
)head
4+
(body
5+
"\n
6+
(b
7+
(i
8+
"Bold and italic
9+
)i
10+
)b
11+
"\n
12+
(strong
13+
(em
14+
"Strong and emphasis
15+
)em
16+
)strong
17+
(em
18+
)em
19+
"\n\n
20+
)body
21+
)html
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
!html
2+
(HTML
3+
(head
4+
"\n
5+
(meta
6+
Acharset utf-8
7+
)meta
8+
"\n
9+
(title
10+
"Real World Example\n<body>\n<div id=header>\n<h1>Welcome</h1>\n</div>\n<div id=content>\n<p>This is a <b>bold <i>and italic</b></i> text.\n<ul>\n<li>First item\n<li>Second item\n<ul>\n<li>Nested item\n</ul>\n</ul>\n<table border=1>\n<tr>\n<th>Header 1<th>Header 2\n<tr>\n<td>Data 1<td>Data 2\n</table>\n<form action=submit.php method=post>\n<input type=text name=username>\n<input type=password name=password>\n<button>Submit\n</form>\n</div>\n<div id=footer>\n<p>© 2024 Example\n</div>\n</html>\n
11+
)title
12+
)head
13+
(body
14+
)body
15+
)HTML

0 commit comments

Comments
 (0)