💾 Archived View for x-z.se › htmlite › spec.gemini captured on 2021-12-03 at 14:04:38. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2020-11-07)

🚧 View Differences

-=-=-=-=-=-=-

HTMLite version 0.01 WIP

Element types

There are 3 types of elements:

Meta elements

No meta elements after the first block element. This includes an injected <p> element caused by text and inline elements before the first literal block element.

Block elements

Text before the first block element are implied to be in a <p> element. This <p> element is injected.

Block elements stack only if they are closed. Otherwise, they will last until the next block element.

Inline elements

Inline elements before the first block element are implied to be in a <p> element. This <p> element is injected.

Inline elements last until they are closed or until the next block element.

Other

<!DOCTYPE> and <!-- comments --> doesn't belong in any of the types and they are never printed.