Class PseudoClasses.ONLY_OF_TYPE

  • Enclosing interface:
    PseudoClasses

    public static class PseudoClasses.ONLY_OF_TYPE
    extends PseudoClass
    Represents an element that has a parent element and whose parent element has no other element children with the same expanded element name. Same as :first-of-type:last-of-type or :nth-of-type(1):nth-last-of-type(1), but with a lower specificity.
    • Constructor Summary

      Constructors 
      Constructor Description
      ONLY_OF_TYPE()  
    • Constructor Detail

      • ONLY_OF_TYPE

        public ONLY_OF_TYPE()
    • Method Detail

      • match

        public boolean match​(Node node)
        Description copied from class: PseudoClass
        Returns true if node matches the pseudo-class.
        Specified by:
        match in class PseudoClass