I've realised that this is, as far as I know, specific to the Jing parser.
If one creates a TEI Bare file from the template, then adds a <note/> element with an invalid attribute:
- Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_bare.rng" type="xml"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Title</title>
</titleStmt>
<publicationStmt>
<p>Publication Information</p>
</publicationStmt><sourceDesc>
<p>Information about the source</p>
</sourceDesc></fileDesc>
</teiHeader>
<text>
<body>
<p>Some text here<note test="123">abc</note></p>
</body>
</text>
</TEI>
then if one clicks on the error (or just looks at the red underline without clicking) it highlights the entire line up to the <note> start tag, plus one character following. This behaviour seems consistent regardless of the error.
Note that if we have an empty tag (rather than a start-tag/end-tag pair) causing an error (e.g. "<ptr/>"), the one character following is no longer inside that element.