Versions
- Open: VersionChanges from v10 to v11+1-1⦚ 16 unchanged lines ⦚$div.innerHTML = html$div.id = id
document.getElementById(id).replaceWith($div)})</script>⦚ 3 unchanged lines ⦚⦚ 16 unchanged lines ⦚$div.innerHTML = html$div.id = iddocument.getElementById(id).replaceWith(...$div.children)})</script>⦚ 3 unchanged lines ⦚ - Open: VersionChanges from v9 to v10+1-1⦚ 16 unchanged lines ⦚$div.innerHTML = html$div.id = id
document.getElementById(id).replaceWith(html)})</script>⦚ 3 unchanged lines ⦚⦚ 16 unchanged lines ⦚$div.innerHTML = html$div.id = iddocument.getElementById(id).replaceWith($div)})</script>⦚ 3 unchanged lines ⦚ - Open: VersionChanges from v8 to v9+3-0⦚ 13 unchanged lines ⦚.then(blob => blob.text()).then(html => {
document.getElementById(id).replaceWith(html)})</script>⦚ 3 unchanged lines ⦚⦚ 13 unchanged lines ⦚.then(blob => blob.text()).then(html => {const $div = document.createElement("div")$div.innerHTML = html$div.id = iddocument.getElementById(id).replaceWith(html)})</script>⦚ 3 unchanged lines ⦚ - Open: VersionChanges from v7 to v8+1-4⦚ 13 unchanged lines ⦚.then(blob => blob.text()).then(html => {
const $div = document.createElement("div")$div.innerHTML = html$div.id = iddocument.getElementById(id).replaceWith($div)})</script>⦚ 3 unchanged lines ⦚⦚ 13 unchanged lines ⦚.then(blob => blob.text()).then(html => {document.getElementById(id).replaceWith(html)})</script>⦚ 3 unchanged lines ⦚ - Open: VersionChanges from v6 to v7+1-0import { html, RawHTML } from "https://esm.town/v/postpostscript/html";import { hybridTaggedTemplateMethodAsync } from "https://esm.town/v/postpostscript/hybridTaggedTemplateMethod";import { provideBlob } from "https://esm.town/v/postpostscript/provideBlob";export function provideBlobToHtml(jsPromise: RawHTML, placeholder?: unknown) {⦚ 18 unchanged lines ⦚import { html, RawHTML } from "https://esm.town/v/postpostscript/html";import { hybridTaggedTemplateMethodAsync } from "https://esm.town/v/postpostscript/hybridTaggedTemplateMethod";import { provideBlob } from "https://esm.town/v/postpostscript/provideBlob";export { provideBlob } from "https://esm.town/v/postpostscript/provideBlob";export function provideBlobToHtml(jsPromise: RawHTML, placeholder?: unknown) {⦚ 18 unchanged lines ⦚
- Open: VersionChanges from v5 to v6+1-1⦚ 15 unchanged lines ⦚$div.innerHTML = html$div.id = id
document.getElementById(id).replaceWith(id)})</script>⦚ 3 unchanged lines ⦚⦚ 15 unchanged lines ⦚$div.innerHTML = html$div.id = iddocument.getElementById(id).replaceWith($div)})</script>⦚ 3 unchanged lines ⦚ - Open: VersionChanges from v4 to v5+1-1⦚ 11 unchanged lines ⦚${jsPromise}.then(blob => blob.text())
.then(text => {const $div = document.createElement("div")$div.innerHTML = html⦚ 7 unchanged lines ⦚⦚ 11 unchanged lines ⦚${jsPromise}.then(blob => blob.text()).then(html => {const $div = document.createElement("div")$div.innerHTML = html⦚ 7 unchanged lines ⦚ - Open: VersionChanges from v3 to v4+2-2import { html, RawHTML } from "https://esm.town/v/postpostscript/html";import { hybridTaggedTemplateMethodAsync } from "https://esm.town/v/postpostscript/hybridTaggedTemplateMethod";import { provideBlob } from "https://esm.town/v/postpostscript/provideBlob";
export function provideBlobToHtml(script: RawHTML, placeholder?: unknown) {const id = "provideBlobHtml-" + Math.random().toString().slice(3);return html`<div id="${id}">${placeholder}<script>const id = "${id}";${script}.then(blob => blob.text()).then(text => {⦚ 9 unchanged lines ⦚import { html, RawHTML } from "https://esm.town/v/postpostscript/html";import { hybridTaggedTemplateMethodAsync } from "https://esm.town/v/postpostscript/hybridTaggedTemplateMethod";import { provideBlob } from "https://esm.town/v/postpostscript/provideBlob";export function provideBlobToHtml(jsPromise: RawHTML, placeholder?: unknown) {const id = "provideBlobHtml-" + Math.random().toString().slice(3);return html`<div id="${id}">${placeholder}<script>const id = "${id}";${jsPromise}.then(blob => blob.text()).then(text => {⦚ 9 unchanged lines ⦚ - Open: Version+23-0import { html, RawHTML } from "https://esm.town/v/postpostscript/html";import { hybridTaggedTemplateMethodAsync } from "https://esm.town/v/postpostscript/hybridTaggedTemplateMethod";import { provideBlob } from "https://esm.town/v/postpostscript/provideBlob";export function provideBlobToHtml(script: RawHTML, placeholder?: unknown) {const id = "provideBlobHtml-" + Math.random().toString().slice(3);return html`<div id="${id}">${placeholder}<script>const id = "${id}";${script}.then(blob => blob.text()).then(text => {const $div = document.createElement("div")$div.innerHTML = html$div.id = iddocument.getElementById(id).replaceWith(id)})</script></div>`;}
Updated: March 2, 2024