How get the RAW value of attributes ? #2313
-
Hi, I try to read the HTML code <div id="test" data-something="[ 'test', 'mc'Donnel' ]" Brython print( document['test'].dataset.something) output
and so I can't manipulate this wrong formatted list :'( any ideas ? WebBrowser console:
BTW" I'm running Brython 3.11.2 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
Did you try with print( document['test'].attrs["data-something"]) |
Beta Was this translation helpful? Give feedback.
-
Indeed, my bad.
As you do
|
Beta Was this translation helpful? Give feedback.
-
indeed, I've just discover than even with a value of |
Beta Was this translation helpful? Give feedback.
We were all ~wrong,
I finally found were was the bug. To generate my html I'm using Flask/Jinja.
when my template had an extension
.htm
no problems at all but when I changed to.jinja
then that trigger this odd behavior !!! I'm glad I've found, but OMG I could still dig for a long time...Cheers.