// Copyright © 2015 The CefSharp Authors. All rights reserved. // // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. using System.Collections.Generic; using System.Collections.ObjectModel; namespace CefSharp { /// /// Represents the tag name and attribute data belonging to a node in the /// browser's DOM. /// public interface IDomNode : IEnumerable> { /// /// Get the value of an attribute. /// /// /// The name of the attribute value to get. /// /// /// The attribute value if the name exists in the DomNode's attributes. /// Null if the name does not exist. /// string this[string attributeName] { get; } /// /// The name of the HTML element. /// string TagName { get; } /// /// Get a read only list of the attribute names. /// ReadOnlyCollection AttributeNames { get; } /// /// Determine if the DomNode has the requested attribute. /// /// /// The name of the attribute value. /// /// /// True if the attribute exists in the DomNode, false if it does not. /// bool HasAttribute(string attributeName); } }