Exemple #1
0
 public virtual Selector <HtmlNode> Universal(NamespacePrefix prefix)
 {
     return(prefix.IsSpecific
          ? (Selector <HtmlNode>)(nodes => Enumerable.Empty <HtmlNode>())
          : (nodes => nodes.Elements()));
 }
Exemple #2
0
 public virtual Selector <HtmlNode> AttributeExists(NamespacePrefix prefix, string name)
 {
     return(prefix.IsSpecific
          ? (Selector <HtmlNode>)(nodes => Enumerable.Empty <HtmlNode>())
          : (nodes => nodes.Elements().Where(n => n.Attributes[name] != null)));
 }
 public void AttributeSubstring(NamespacePrefix prefix, string name, string value)
 {
     Add(Ops.AttributeSubstring(prefix, name, value));
 }
Exemple #4
0
 public virtual Selector <HtmlNode> Type(NamespacePrefix prefix, string type)
 {
     return(prefix.IsSpecific
          ? (Selector <HtmlNode>)(nodes => Enumerable.Empty <HtmlNode>())
          : (nodes => nodes.Elements().Where(n => n.Name == type)));
 }
 public virtual void AttributeIncludes(NamespacePrefix prefix, string name, string value)
 {
     Add(Ops.AttributeIncludes(prefix, name, value));
 }
 public virtual void AttributeDashMatch(NamespacePrefix prefix, string name, string value)
 {
     Add(Ops.AttributeDashMatch(prefix, name, value));
 }
 public void AttributeNotEqual(NamespacePrefix prefix, string name, string value)
 {
     Add(Ops.AttributeNotEqual(prefix, name, value));
 }
 public virtual void AttributeExists(NamespacePrefix prefix, string name)
 {
     Add(Ops.AttributeExists(prefix, name));
 }
 public virtual void Universal(NamespacePrefix prefix)
 {
     Add(Ops.Universal(prefix));
 }
 public virtual void Type(NamespacePrefix prefix, string type)
 {
     Add(Ops.Type(prefix, type));
 }
Exemple #11
0
 /// <summary>
 /// Indicates whether this instance and another are equal.
 /// </summary>
 public bool Equals(NamespacePrefix other)
 {
     return(Text == other.Text);
 }