ajaxorg / ajaxorg/ace

XML: No error reported for missing namespace definition

Aberta
#3,901 11 comentários 0 reações 0 responsáveis Ver no GitHub
effort/medium feature-request p2
Linguagem predominante
JavaScript
Estrelas
27.1k
Forks
5.3k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

## Sample

1. Open https://ace.c9.io/build/kitchen-sink.html?doc=XML (Make sure that "Enable Behaviors" is activated)
2. Replace the content with
```xml

```

## What is the expected result?
An error indication is shown that there is no namespace definition for the prefix `abc`. The developer should add `xmlns:abc="myNameSpaceDefinition"` in the same node or at the parent level.

## What happens instead?
There is **no error** indication on the left side.
![no-error-show-for-missing-xml-namespace-in-ace](https://user-images.githubusercontent.com/12143247/53649855-71b9fb00-3c43-11e9-9a5a-1d9265225c00.gif)

When trying to parse the XML document (e.g. by a framework), it throws a vague parse error. This is fine as long as the document is short, but in real projects, XML files can become quite large and finding the cause of the error becomes difficult.

This could be avoided when the error is shown early in the design time.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.