Package lxml :: Package html :: Class HtmlElementClassLookup
[show private | hide private]
[frames | no frames]

Type HtmlElementClassLookup

            object --+            
                     |            
    ElementClassLookup --+        
                         |        
FallbackElementClassLookup --+    
                             |    
      CustomElementClassLookup --+
                                 |
                                HtmlElementClassLookup


A lookup scheme for HTML Element classes.

To create a lookup instance with different Element classes, pass a tag name mapping of Element classes in the ``classes`` keyword argument and/or a tag name mapping of Mixin classes in the ``mixins`` keyword argument. The special key '*' denotes a Mixin class that should be mixed into all Element classes.
Method Summary
  __init__(self, classes, mixins)
  lookup(self, node_type, document, namespace, name)
    Inherited from CustomElementClassLookup
  __new__(T, S, ...)
T.__new__(S, ...) -> a new object with type S, a subtype of T
    Inherited from FallbackElementClassLookup
  setFallback(...)
Sets the fallback scheme for this lookup method.
    Inherited from object
  __delattr__(...)
x.__delattr__('name') <==> del x.name
  __getattribute__(...)
x.__getattribute__('name') <==> x.name
  __hash__(x)
x.__hash__() <==> hash(x)
  __reduce__(...)
helper for pickle
  __reduce_ex__(...)
helper for pickle
  __repr__(x)
x.__repr__() <==> repr(x)
  __setattr__(...)
x.__setattr__('name', value) <==> x.name = value
  __str__(x)
x.__str__() <==> str(x)

Class Variable Summary
dict _default_element_classes = {'input': <class 'lxml.html.I...
    Inherited from CustomElementClassLookup
PyCObject __pyx_vtable__ = <PyCObject object at 0x401cb890>
    Inherited from FallbackElementClassLookup
member_descriptor fallback = <member 'fallback' of 'lxml.etree.FallbackEle...

Class Variable Details

_default_element_classes

Type:
dict
Value:
{'form': <class 'lxml.html.FormElement'>,
 'input': <class 'lxml.html.InputElement'>,
 'label': <class 'lxml.html.LabelElement'>,
 'select': <class 'lxml.html.SelectElement'>,
 'textarea': <class 'lxml.html.TextareaElement'>}                      

Generated by Epydoc 2.1 on Sat Aug 18 12:44:28 2007 http://epydoc.sf.net