30 references to GetAttribute
System.Windows.Forms (2)
System\Windows\Forms\Controls\WebBrowser\HtmlElement.cs (1)
256get => GetAttribute("Name");
System\Windows\Forms\Controls\WebBrowser\HtmlElementCollection.cs (1)
114if (element.GetAttribute("name") == name)
System.Windows.Forms.Tests (28)
System\Windows\Forms\HtmlDocumentTests.cs (8)
846Assert.Equal("form1", collection[0].GetAttribute("id")); 848Assert.Equal("form2", collection[1].GetAttribute("id")); 882Assert.Equal("img1", collection[0].GetAttribute("id")); 884Assert.Equal("img2", collection[1].GetAttribute("id")); 1034Assert.Equal("link1", collection[0].GetAttribute("id")); 1036Assert.Equal("link2", collection[1].GetAttribute("id")); 1774Assert.Equal("form1", collection[0].GetAttribute("id")); 1776Assert.Equal("form2", collection[1].GetAttribute("id"));
System\Windows\Forms\HtmlElementTests.cs (20)
1851Assert.Empty(element.GetAttribute("NoSuchAttribute")); 1852Assert.Empty(element.GetAttribute("")); 1879Assert.Equal("id", element.GetAttribute("id")); 1880Assert.Equal("value", element.GetAttribute("customAttribute")); 1881Assert.Equal("value", element.GetAttribute("CUSTOMATTRIBUTE")); 1882Assert.Empty(element.GetAttribute("noValue")); 1883Assert.Empty(element.GetAttribute("NoSuchAttribute")); 1884Assert.Empty(element.GetAttribute("")); 1899Assert.Equal("id", element.GetAttribute("id")); 1900Assert.Equal("value", element.GetAttribute("customAttribute")); 1901Assert.Equal("value", element.GetAttribute("CUSTOMATTRIBUTE")); 1902Assert.Empty(element.GetAttribute("noValue")); 1903Assert.Empty(element.GetAttribute("NoSuchAttribute")); 1904Assert.Empty(element.GetAttribute("")); 1919Assert.Throws<ArgumentException>(() => element.GetAttribute(null)); 1939Assert.Equal("form1", collection[0].GetAttribute("id")); 1941Assert.Equal("form2", collection[1].GetAttribute("id")); 2451Assert.Equal(value, element.GetAttribute("customAttribute")); 2455Assert.Equal(value, element.GetAttribute("customAttribute")); 2459Assert.Equal("newValue", element.GetAttribute("customAttribute"));