mono/mono — pull request #412 by Alkarex (2012-07-30 10:15:09+00:00)
Title: Update mcs/class/Commons.Xml.Relaxng/Commons.Xml.Relaxng/RelaxngValidati...

...ngReader.cs

There should not be such a big difference in behaviour when the application listens to the InvalidNodeFound event or not.
Furthermore, before the patch, the following document would fail (tests done with http://syntax.whattf.org/relaxng/xhtml5.rnc ):

[!DOCTYPE html]
[html xmlns="http://www.w3.org/1999/xhtml"]
[head][title]XHTML5 test[/title][/head]
[body][p]This is a [span]simple[/span] test.[/p][/body]
[/html]

because "cachedValue" contains "This is a".

However, I have a suspicion that there is a problem in the logic of this function.

Cordially,
Alexandre
http://alexandre.alapetite.fr