public static string ParentSelector(string child) { return string.Format(":has('{0}'):last", child); }