mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-09-27 04:50:43 +00:00

* remove shared tag regex utility function that is no longer really needed * fix head-support manual test to point to externally hosted extension * minimize regex
42 lines
1.3 KiB
HTML
42 lines
1.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" hx-preserve="true">
|
|
<meta name="htmx-config" content='{"useTemplateFragments": true}' hx-preserve="true">
|
|
|
|
<title>Index content</title>
|
|
|
|
<style hx-preserve="true">
|
|
* {
|
|
font-family: Arial, sans-serif;
|
|
font-size: 24px;
|
|
}
|
|
code {
|
|
font-family: monospace;
|
|
font-size: 20px;
|
|
}
|
|
hr { border: 1px solid black; }
|
|
</style>
|
|
|
|
<script src="../../../src/htmx.js" hx-preserve="true"></script>
|
|
<script src="https://unpkg.com/htmx-ext-head-support@2.0.0/head-support.js" hx-preserve="true"></script>
|
|
</head>
|
|
<body hx-ext="head-support" hx-boost="true">
|
|
<header hx-push-url="false" hx-target="main" hx-swap="innerHTML">
|
|
<nav>
|
|
<ul>
|
|
<li><a href="./index-partial.html">Index</a></li>
|
|
<li><a href="./other-content.html">See other content</a></li>
|
|
</ul>
|
|
</nav><hr>
|
|
</header>
|
|
<main>
|
|
<h1># Index</h1>
|
|
<ul>
|
|
<li><code><title></code> <b>should not</b> spawn inside <code><main></code></li>
|
|
<li><code><title></code> <b>should be</b> <em>index content</em></li>
|
|
</ul>
|
|
</main>
|
|
</body>
|
|
</html>
|