Skip to content

Commit 245b747

Browse files
committed
Ensure ESI tags are left intact
Signed-off-by: Cees-Jan Kiewiet <ceesjank@gmail.com>
1 parent 6ec2f59 commit 245b747

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

tests/EdgeCases/esi/in.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<esi:include />
5+
<meta name="robots" content="noindex, follow">
6+
<style>
7+
/** quick fix because bootstrap <pre> has a background-color. */
8+
pre code { background-color: inherit; }
9+
</style>
10+
</head>
11+
<body class="blog">
12+
<header>
13+
<nav>
14+
</nav>
15+
</header>
16+
<script>window.jQuery || document.write('<script src="http://blog.wyrihaximus.net/components/jquery/jquery.min.js"><\/script>')</script>
17+
</body>
18+
</html>

tests/EdgeCases/esi/out.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!DOCTYPE html><html><head><esi:include /><meta content="noindex, follow" name=robots><style>pre code{background-color:inherit}</style> <body class=blog><header><nav></nav> </header> <script>window.jQuery||document.write('<script src="http://blog.wyrihaximus.net/components/jquery/jquery.min.js"><\/script>')</script>

0 commit comments

Comments
 (0)