5.2.2.15 type="..." attribute (image)

The tag determines the generated name (5.2.2.5) from the name related attributes.

For example:

>>> import albatross
>>> class Ctx(albatross.SimpleContext):
...     def input_add(self, *args):
...         print args
... 
>>> ctx = Ctx('.')
>>> albatross.Template(ctx, '<magic>', '''
... <al-input type="image" nextpage="m" srcicons/right.gif" whitespace>
... ''').to_html(ctx)
('image', 'nextpage,m', None, 0)
>>> ctx.flush_content()
<input type="image" srcicons/right.gif" name="nextpage,m">

After writing all tag attributes the execution context input_add() method is called with the arguments; input field type ('image'), the generated name, None, and a flag indicating whether or not the list (5.2.2.4) attribute was present.