Implement parser; remove legacy code

This commit is contained in:
Wilson Lin 2021-08-06 12:07:27 +10:00
commit 88d288b0cb
38 changed files with 714 additions and 2137 deletions

View file

@ -26,3 +26,12 @@ there
<h1>Test</h1>
</body>
</html>
<!-- HTML4 -->
<script type="text/javascript">
alert("Hello World!");
</script>
<!-- HTML5 -->
<script>
alert("Hello World!");
</script>

View file

@ -1,12 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Hello world!</title>
</head>
<body>
Hello world!
</body>
</html>

View file

@ -1,9 +0,0 @@
<!-- HTML4 -->
<script type="text/javascript">
alert("Hello World!");
</script>
<!-- HTML5 -->
<script>
alert("Hello World!");
</script>

54
fuzz/in/tags.html Normal file
View file

@ -0,0 +1,54 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body><root><svg><circle r=1/>2</svg>
<DIV>
<span lang=/></div>
<DIV>
<xtag></div>
<DIV>0
<main><blockquote>1<menu>2</blockquote>3</meNU>4</root></div>5
<img></img>
<br></br>
<input></input>
<hr></hr>
<link></link>
<meta></link>
</body>
</html>
<html>
<></>
<div-1></>
<div0></ div0 x=">">
<div1>a</#()** div=">">
<div2>b</div3 #()** div=">">
<div4>c</div5#()** div=">">
<div6">d</div7#()** div=">">
<div>e</div #()** div=">">
<div>f</soap #()** div=">">
<div>g</span #()** div=">">
<div>h</div#()** div=">">
<div>h<1/div#()** div=">">
<input type
=
"password" "a" = "b" :cd /e /=fg = /\h /i/ /j/k/l m=n=o q==\r/s/ / t] = /u / w=//>
<span < = <></span>
<textarea>&lt;</textare></textarea x=">">>
<script>&lt;</scrip</script>
<pre></pr</pre>
<div/>
5
</
<div>
</div x=">">
6
<div>
</body>
7
</div>
8
</html>