Skip to content

[Bug]: XML syntax errors are not reported in XAML files #356

Open

Description

Describe the bug

Malformed XML gets no diagnostic: multiple root elements, text outside the root, raw < or & or bad entities in attribute values, invalid XML characters, XML declaration errors, < Button/>, and malformed markup-extension arguments.

To Reproduce

  1. Open a page and add a second root element after </Page>, or Content="a & b", or < Button/>.
  2. No diagnostic is shown; the build fails.

Expected behavior

An error at the offending token.

Notes

Bug bash ID: C-19.

Screenshots

No response

OS Version and details

Windows 11 x64 (10.0.26200), VS Code 1.143.1, .NET SDK 10.0.403. Found in the XAML IntelliSense bug bash on 0.3.1-prerelease.456 (PR #276, f90df977).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugintellisense

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions