AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.2.0" />

 HTMLFormControlsCollection

namespace AngleSharp.DOM.Collections { public class HTMLFormControlsCollection : HTMLCollection { public override object NamedItem(string name) { HTMLCollection hTMLCollection = new HTMLCollection(); for (int i = 0; i < _entries.Count; i++) { if (_entries[i].Id == name || _entries[i].GetAttribute("name") == name) hTMLCollection.Add(_entries[i]); } if (hTMLCollection.Length == 0) return null; if (hTMLCollection.Length == 1) return hTMLCollection[0]; return hTMLCollection; } } }