ajaxorg / ajaxorg/ace

XML: No error reported for missing namespace definition

Abierto
#3,901 11 comentarios 0 reacciones 0 asignados Ver en GitHub
effort/medium feature-request p2
Lenguaje dominante
JavaScript
Estrellas
27.1k
Forks
5.3k
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.