| 1 | # Nested Tags Test # |
|---|
| 2 | |
|---|
| 3 | Below are a series of variations on a theme where a developer might want to |
|---|
| 4 | talk about (or acutally use) HTML markup that contains processing instructions |
|---|
| 5 | of 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> |
|---|