Skip to content

feat: no unknkown elements lint#201

Merged
noahbald merged 4 commits intomainfrom
feat/no-unknkown-elements-lint
Dec 1, 2025
Merged

feat: no unknkown elements lint#201
noahbald merged 4 commits intomainfrom
feat/no-unknkown-elements-lint

Conversation

@noahbald
Copy link
Owner

@noahbald noahbald commented Dec 1, 2025

Description

Creates a new lint that detects when an element is unknown to it's parent's content-model.

Motivation and Context

Helps user's discover when they accidentally break the document's content-model

How Has This Been Tested?

  • Unit tests
  • w3c
  • lsp in Helix

Types of changes

Fixes

  • Fixes Element::parent_element returning Some when parent is a document node
  • Fixes aliased elements being parsed as ElementId::Unknown instead of ElementId::Aliased

Features

  • Adds new lint

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@noahbald noahbald self-assigned this Dec 1, 2025
@noahbald noahbald merged commit dc8c07c into main Dec 1, 2025
27 of 29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant