Home | History | Annotate | Download | only in dom

Lines Matching refs:features

32 def _good_enough(dom, features):
33 "_good_enough(dom, features) -> Return 1 if the dom offers the features"
34 for f,v in features:
39 def getDOMImplementation(name = None, features = ()):
40 """getDOMImplementation(name = None, features = ()) -> DOM implementation.
49 be found, raise an ImportError. The features list must be a sequence
64 # order, returning the one that has the required features
65 if isinstance(features, StringTypes):
66 features = _parse_feature_string(features)
69 if _good_enough(dom, features):
77 if _good_enough(dom, features):
83 features = []
98 features.append((feature, version))
99 return tuple(features)