attmatch

package
v2.12.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 7, 2015 License: MIT, MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BeginsWith

func BeginsWith(attr string, compareTo string) attrMatcher

E[foo^="bar"] an E element whose "foo" attribute value begins exactly with the string "bar" Attribute selectors 3

func Contains

func Contains(attr string, compareTo string) attrMatcher

E[foo*="bar"] an E element whose "foo" attribute value contains the substring "bar" Attribute selectors 3

func EndsWith

func EndsWith(attr string, compareTo string) attrMatcher

E[foo$="bar"] an E element whose "foo" attribute value ends exactly with the string "bar" Attribute selectors 3

func Equals

func Equals(attr string, compareTo string) attrMatcher

E[foo="bar"] an E element whose "foo" attribute value is exactly equal to "bar" Attribute selectors 2

func Exists

func Exists(attr string) attrMatcher

E[foo] an E element with a "foo" attribute Attribute selectors 2

func HyphenBeginsWith

func HyphenBeginsWith(attr string, compareTo string) attrMatcher

E[foo|="en"] an E element whose "foo" attribute has a hyphen-separated list of values beginning (from the left) with "en"

func Includes

func Includes(attr string, compareTo string) attrMatcher

E[foo~="bar"] an E element whose "foo" attribute value is a list of whitespace-separated values, one of which is exactly equal to "bar" Attribute selectors 2

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL