| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8" hx-preserve="true"> |
| 5 | <meta name="htmx-config" content='{"useTemplateFragments": true}' hx-preserve="true"> |
| 6 | |
| 7 | <title>Index content</title> |
| 8 | |
| 9 | <style hx-preserve="true"> |
| 10 | * { |
| 11 | font-family: Arial, sans-serif; |
| 12 | font-size: 24px; |
| 13 | } |
| 14 | code { |
| 15 | font-family: monospace; |
| 16 | font-size: 20px; |
| 17 | } |
| 18 | hr { border: 1px solid black; } |
| 19 | </style> |
| 20 | |
| 21 | <script src="../../../src/htmx.js" hx-preserve="true"></script> |
| 22 | <script src="https://unpkg.com/[email protected]/head-support.js" hx-preserve="true"></script> |
| 23 | </head> |
| 24 | <body hx-ext="head-support" hx-boost="true"> |
| 25 | <header hx-push-url="false" hx-target="main" hx-swap="innerHTML"> |
| 26 | <nav> |
| 27 | <ul> |
| 28 | <li><a href="./index-partial.html">Index</a></li> |
| 29 | <li><a href="./other-content.html">See other content</a></li> |
| 30 | </ul> |
| 31 | </nav><hr> |
| 32 | </header> |
| 33 | <main> |
| 34 | <h1># Index</h1> |
| 35 | <ul> |
| 36 | <li><code><title></code> <b>should not</b> spawn inside <code><main></code></li> |
| 37 | <li><code><title></code> <b>should be</b> <em>index content</em></li> |
| 38 | </ul> |
| 39 | </main> |
| 40 | </body> |
| 41 | </html> |