Skip to content

XML Tag-Matching Should Be Case-Sensitive #10011

@nwehneman

Description

@nwehneman

Description of the Issue

Notepad++ identifies and color-matches XML tags based on a case-insensitive search. For example, the tag <fileName> will be matched to the closing tag of </filename>. (Note the differing capitalization of the letter "N".) However, the XML standard is case-sensitive. Additionally, C# compiled into Javascript via Unity follows the XML standard, generating a runtime exception when parsing an XML file that contains case-insensitive tag-matching.

Steps to Reproduce the Issue

  1. Create an opening tag of <fileName> in an XML file edited in Notepad++
  2. Create a closing tag of </filename> in the same file
  3. Observe that Notepad++ colors both tags in purple to indicate a match

Expected Behavior

I would expect the tags to not be identified as a match as they do not match per the XML standard and at least one implementation of that standard.

Actual Behavior

Notepad++ identifies the tags as a match.

Debug Information

Notepad++ v7.9.5 (64-bit)
Build time : Mar 21 2021 - 02:13:17
Path : C:\Program Files\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 1809
OS Build : 17763.1577
Current ANSI codepage : 1252
Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll

image

Metadata

Metadata

Labels

language-supportIssues or PRs related to programming languages (also e.g. in styles, themes)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions