seems related to https://github.com/web2py/web2py/issues/1074
On Tuesday, December 15, 2015 at 12:23:26 PM UTC+1, Manuele wrote:
>
> Hi *,
> just try this easy example I found in code comments of html.py:
>
> In [3]: a=TAG('<div><span><a id="1" u:v=$>hello</a></span><p class="this
> is a test">world</p></div>')
> In [4]: a.elements("#1")
> Out[4]: [<gluon.html.__tag_div__ at 0x31e0a10>]
>
> now just define a new x variable very similar to the "a" variable using
> the HTML helpers as follows:
>
> In [6]: x = DIV(SPAN(A("hello", _id=1)), P('world', _class="mypclass"))
> In [7]: x.elements("#1")
> Out[7]: []
>
> In [8]: TAG(str(x)).elements("#1")
> Out[8]: [<gluon.html.__tag_div__ at 0x31dee90>]
>
> is it a correct behaviour or can be considered a bug?
>
> Thanks a lot
>
> Manuele
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.