public static GetData ( this node, string dataAttributeName ) : string | ||
node | this | |
dataAttributeName | string | Microdata label in data-label attribute |
return | string |
public static string GetData(this GeckoElement node, string dataAttributeName)
{
if (string.IsNullOrEmpty(dataAttributeName))
throw new ArgumentException("attributeName");
return node.GetAttribute("data-" + dataAttributeName);
}