Ticket #42: nested_tags.txt

File nested_tags.txt, 0.9 kB (added by roberthahn, 2 years ago)

This file, found in BlueCloth/tests/data, has been created to illustrate possible error scenarios (2/2)

Line 
1# Nested Tags Test #
2
3Below are a series of variations on a theme where a developer might want to
4talk about (or acutally use) HTML markup that contains processing instructions
5of some sort.  The following scenarios should all be legal:
6
7<div><a href="<!--echo var="PAGE"-->">SSI instructions</a></div>
8
9<div><a href="<%= PAGE %>">erb or ASP instructions</a></div>
10
11<div><a href="<?= PAGE ?>">PHP instructions</a></div>
12
13<div><a href="<cfoutput name="PAGE">">ColdFusion instructions</a></div>
14
15    <a href="<!--echo var="PAGE"-->">foo</a>
16
17    <a href="<%= PAGE %>">foo</a>
18
19    <a href="<?= PAGE ?>">foo</a>
20
21    <a href="<cfoutput name="PAGE">">ColdFusion instructions</a>
22
23...and the ultimate potential nasty:
24
25<div><a href="<% if (a < b ) { c } %>">...</a></div>
26
27    <a href="<% if (a < b ) { c } %>">...</a>
28
29<div><a href="<% if (a > b ) { c } %>">...</a></div>
30
31    <a href="<% if (a > b ) { c } %>">...</a>