Last modified: 2014-07-24 20:52:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70149, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68149 - Make LinearDoc.js signal an error if given ill-formed XML
Make LinearDoc.js signal an error if given ill-formed XML
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
ContentTranslation (Other open bugs)
unspecified
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-17 09:14 UTC by D Chan
Modified: 2014-07-24 20:52 UTC (History)
9 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description D Chan 2014-07-17 09:14:07 UTC
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").

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links