[monodoc] Fix ecma traversal with unattached tree.
authorJérémie Laval <jeremie.laval@gmail.com>
Wed, 5 Jun 2013 23:04:04 +0000 (19:04 -0400)
committerJérémie Laval <jeremie.laval@gmail.com>
Wed, 5 Jun 2013 23:04:04 +0000 (19:04 -0400)
commitff817916b8b2527c885e574d48357fdcdeafdec6
tree750b587530bff244a966310debcec77079b2d6c5
parenta84dee6d102fc4754034c48b321d70d55c1680b3
[monodoc] Fix ecma traversal with unattached tree.

Previously the code expected to stop at upper level node using the fact that their element starts with `root:/'. This element is attributed by RootNode when loading a complete tree. However tool like mdoc also loads tree unattached which doesn't create a standard `root:/` top-level root node hence causing the issue.
mcs/class/monodoc/Monodoc/providers/EcmaDoc.cs
mcs/class/monodoc/Test/Monodoc/HelpSourceTests.cs