mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
2404ad6897
This fixes parsing the following regular expression: /</g; It also adds a simple script element to the HTMLTokenizer regression test, which also contains that specific regex.
21 lines
594 B
HTML
21 lines
594 B
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>This is a test page :^)</title>
|
|
<script>
|
|
let foo = 2;
|
|
var bar = 3;
|
|
if (foo < bar)
|
|
alert("Check happens with HTML special <characters>.");
|
|
let regex = /</g;
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<p>This is the first paragraph.</p>
|
|
<p foo="bar">The second paragraph has an attribute!</p>
|
|
<!-- This is a standard HTML comment. -->
|
|
<!----- This comment has a few too many dashes. ----->
|
|
<!----> <!-- <= There is an empty comment over there. -->
|
|
</body>
|
|
</html>
|