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

Type HtmlElementClassLookup

            object --+            
    ElementClassLookup --+        
FallbackElementClassLookup --+    
      CustomElementClassLookup --+

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
Sets the fallback scheme for this lookup method.
    Inherited from object
x.__delattr__('name') <==> del
x.__getattribute__('name') <==>
x.__hash__() <==> hash(x)
helper for pickle
helper for pickle
x.__repr__() <==> repr(x)
x.__setattr__('name', value) <==> = value
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


{'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