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;
}
}
}