INamedNodeMap
NamedNodeNap is a key/value pair of nodes that can be accessed by
numeric or string index.
https://dom.spec.whatwg.org/#interface-namednodemap
using AngleSharp.Attributes;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
namespace AngleSharp.Dom
{
[System.Runtime.CompilerServices.NullableContext(1)]
[DomName("NamedNodeMap")]
public interface INamedNodeMap : IEnumerable<IAttr>, IEnumerable
{
[System.Runtime.CompilerServices.Nullable(2)]
[DomName("item")]
[DomAccessor(Accessors.Getter)]
IAttr this[int index] {
[System.Runtime.CompilerServices.NullableContext(2)]
get;
}
[System.Runtime.CompilerServices.Nullable(2)]
[DomAccessor(Accessors.Getter)]
IAttr this[string name] {
[return: System.Runtime.CompilerServices.Nullable(2)]
get;
}
[DomName("length")]
int Length { get; }
[DomName("getNamedItem")]
[return: System.Runtime.CompilerServices.Nullable(2)]
IAttr GetNamedItem(string name);
[DomName("setNamedItem")]
[return: System.Runtime.CompilerServices.Nullable(2)]
IAttr SetNamedItem(IAttr item);
[DomName("removeNamedItem")]
IAttr RemoveNamedItem(string name);
[System.Runtime.CompilerServices.NullableContext(2)]
[DomName("getNamedItemNS")]
IAttr GetNamedItem(string namespaceUri, [System.Runtime.CompilerServices.Nullable(1)] string localName);
[DomName("setNamedItemNS")]
[return: System.Runtime.CompilerServices.Nullable(2)]
IAttr SetNamedItemWithNamespaceUri(IAttr item);
[DomName("removeNamedItemNS")]
IAttr RemoveNamedItem([System.Runtime.CompilerServices.Nullable(2)] string namespaceUri, string localName);
}
}