fixed segfault when the lib tries to parse HTML with embedded CSS; provided test case

This commit is contained in:
Christian Schulze
2016-03-06 16:43:53 +01:00
parent e70366a65a
commit 52d7d14f6c
3 changed files with 37 additions and 2 deletions

16
tests/test6 Normal file
View File

@ -0,0 +1,16 @@
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style type="text/css">
html, body, iframe { margin: 0; padding: 0; height: 100%; }
iframe { display: block; width: 100%; border: none; }
</style>
<title>Application Error</title>
</head>
<body>
<iframe src="//s3.amazonaws.com/heroku_pages/error.html">
<p>Application Error</p>
</iframe>
</body>
</html>