How to add a &nbsp to a Serenade view?

14 views
Skip to first unread message

Rodrigo Rosenfeld Rosas

unread,
Jul 3, 2012, 3:43:22 PM7/3/12
to seren...@googlegroups.com
Yep, this is a hack for IE7, but anyway, it should be possible to add some arbitrary HTML, don't you think?

Jonas Nicklas

unread,
Jul 3, 2012, 8:05:24 PM7/3/12
to seren...@googlegroups.com
Could be tricky, since content is added in Serenade by appending text
nodes, and those ignore entities. So we'd have to convert them
ourselves before adding them to the DOM, I guess, which seems quite
brittle and weird. I could be wrong though, maybe it's possible.

/Jonas

Rodrigo Rosenfeld Rosas

unread,
Jul 4, 2012, 9:39:34 AM7/4/12
to seren...@googlegroups.com
I've already fixed that specific problem yesterday by using something like

span[hidden="hidden"] " "

By the way, that feels strange as I think I should be able to create this only with

span[hidden] " "

just like in HTML5 (<input type=radio name=radioName value=Y checked /> or <span hidden> </span>).

I've created an issue for this:


With regards to &nbsp;, I'm still curious. Would it be possible to add it through some Serenade helper? If so, how would that work?

Best,
Rodrigo.


Em terça-feira, 3 de julho de 2012 21h05min24s UTC-3, jnicklas escreveu:
Could be tricky, since content is added in Serenade by appending text
nodes, and those ignore entities. So we'd have to convert them
ourselves before adding them to the DOM, I guess, which seems quite
brittle and weird. I could be wrong though, maybe it's possible.

/Jonas

Reply all
Reply to author
Forward
0 new messages