At least for now, that does appear to be intentional: 
http://code.google.com/p/web2py/source/browse/gluon/html.py#2380 (note, an 
alternative is suggested in the comment).

Anthony

On Friday, July 13, 2012 5:20:19 AM UTC-4, Liam wrote:
>
> Unless this is expected behaviour...
>
> In the example below, I expected one DIV, one SPAN and maybe one P when 
> using the .elements() function. However, the MARKMIN input always gets 
> included as a raw string, even when passing 'span' as an argument.
> >>> test = DIV(MARKMIN('**a**'), SPAN('b'))
> >>> test.elements()
> [<gluon.html.DIV at 0x33a3390>, '**a**', <gluon.html.SPAN at 0x33a3350>]
> >>> test.elements('span')
> ['**a**', <gluon.html.SPAN at 0x33a3350>]
> >>> test.element('span')
> '**a**'
>
>

Reply via email to