Just to clarify to other readers. that is a representation issue. Not 
really a functional one. In fact:

>>> test = DIV(MARKMIN('**a**'), SPAN('b'))
>>> print str(test)
<div><p><strong>a</strong></p><span>b</span></div>

which is what is expected.

On Friday, 13 July 2012 04:20:19 UTC-5, 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