ajaxorg / ajaxorg/ace

XML Syntax Error Indication on a Wrong Line

未關閉
#3,479 11 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
bug effort/small good first issue p2
主要語言
JavaScript
星號
27.1k
分支
5.3k
PR 合併指標
30 天內沒有已合併 PR

描述

### Tested Browsers / Devices
Windows 10
- FAIL:
- Chrome 63.0.3239.84
- Edge 41.16299.15.0
- IE 11
- Firefox 57.0.1
- OK: n/a

### URL Minimal Example
https://ace.c9.io/build/kitchen-sink.html?doc=XML

### Steps to Reproduce the Problem
1. Open an XML document to edit
2. Optional: If it's not already the case, separate a single-lined XML tag into multiple LOC
3. Add a syntax error intentionally e.g. a character right after an attribute value: `"..."`**`s`**.

### What Is the Expected Result?
![ace editor xml expected error indication placement](https://user-images.githubusercontent.com/12143247/33842648-60cdc332-de9b-11e7-8017-0498e1dcbcf4.gif)
The error / warning indication is on the same line as where the error actually placed.

### What Happens Instead?
![ace editor xml wrong error indication placement](https://user-images.githubusercontent.com/12143247/33842637-5d2e7c1c-de9b-11e7-8aa2-50774e5d1e95.gif)

### Any other information?
Even with an XML tag which has all the attributes in a single line, the indication is placed somewhere else which is weird.
![ace editor xml wrong error indication placement even with a single line](https://user-images.githubusercontent.com/12143247/33842969-60bfddfc-de9c-11e7-92d0-7d7d27ce798b.gif)
I had a case where I made such a syntax error and didn't know where it was until I had to scroll down.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。