This commit is contained in:
JustArchi
2022-08-08 12:40:19 +02:00
parent 270a71e83c
commit e9c02a4140

View File

@@ -199,7 +199,7 @@ public static class Utilities {
public static IEnumerable<T> SelectNodes<T>(this IDocument document, string xpath) where T : class, INode {
ArgumentNullException.ThrowIfNull(document);
return document.SelectNodes(xpath).OfType<T>();
return document.Body.SelectNodes(xpath).OfType<T>();
}
[PublicAPI]