ajaxorg / ajaxorg/ace

XML: No error reported for missing namespace definition

Aperta
#3,901 11 commenti 0 reazioni 0 assegnatari Vedi su GitHub
effort/medium feature-request p2
Lingua principale
JavaScript
Stelle
27.1k
Fork
5.3k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

## 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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.