This commit is contained in:
JustArchi 2022-08-08 12:40:19 +02:00
parent 270a71e83c
commit e9c02a4140
No known key found for this signature in database
GPG key ID: 6B138B4C64555AEA

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]