Skip to content

add compile-fail test suite for typed API #61

@dannywillems

Description

@dannywillems

Description

The typed API's main value proposition is compile-time validation of HTML nesting. There is only one `compile_fail` doctest, but no systematic compile-fail tests for:

  • Putting `
    ` inside `

    `

  • Putting `
  • ` directly in `
    ` (should require `
      ` or `
        `)
      1. Putting `` directly in `` (should require ``)
      2. Text in void elements
      3. A `trybuild` or doctest-based compile-fail suite would document and enforce the type constraints.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions