https://bugzilla.wikimedia.org/show_bug.cgi?id=68149
Bug ID: 68149
Summary: Make LinearDoc.js signal an error if given ill-formed
XML
Product: MediaWiki extensions
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: Unprioritized
Component: ContentTranslation
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected],
[email protected], [email protected],
[email protected]
Web browser: ---
Mobile Platform: ---
At the moment, LinearDoc.js will accept ill-formed XML containing syntax like
<!--- foo ----> , which then gets misinterpreted.
For example, the document '<p>foo<!-- bar -->baz</p>' correctly gives the
following LinearDoc (XML dump):
<p>
<cxtextblock>
<cxtextchunk>foo</cxtextchunk>
<cxtextchunk>baz</cxtextchunk>
</cxtextblock>
</p>
However, the ill-formed document '<p>foo<!--- bar ---->baz</p>' gives the
following LinearDoc (XML dump):
<p>
The expected behaviour is to signal an XML parser error on reading the
ill-formed document.
This bug occurs because the nodejs sax 0.6.0 module silently accepts ill-formed
XML, which violates 5.1 of http://www.w3.org/TR/REC-xml/ ("Validating and
non-validating processors alike must report violations of this specification's
well-formedness constraints").
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l