Skip to content

fix(conformance): error when conformance section is marked informative#5182

Open
marcoscaceres wants to merge 3 commits intomainfrom
fix/informative-conformance
Open

fix(conformance): error when conformance section is marked informative#5182
marcoscaceres wants to merge 3 commits intomainfrom
fix/informative-conformance

Conversation

@marcoscaceres
Copy link
Copy Markdown
Contributor

A

is semantically contradictory. Conformance sections are normative by definition. Now shows an error with a clear hint to remove the class.

Closes #3357

A conformance section with class="informative" is semantically
contradictory. Now shows an error with a clear hint to remove the
class.

Closes #3357
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds validation to the W3C conformance-section processor to flag a semantically contradictory <section id="conformance" class="informative"> as an error, guiding authors to remove the informative class.

Changes:

  • Import showError and emit an error (with hint + offending element) when the conformance section is marked informative.
  • Preserve existing .override behavior while still reporting the new error condition.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

An "informative" conformance section should be flagged as an error

2 participants