removing an attribute with CSS Selector Transforms

220 views
Skip to first unread message

Diligiant

unread,
Jan 26, 2011, 12:38:39 PM1/26/11
to lif...@googlegroups.com
Hi,

I've tried unsuccessfully different things to remove an attribute like "#sui_educStageLi [class]" #> "" which renders as <... class>

Is there a way to do this ? I'd also like to be able to do [attr-].

Thank you,

Frédéric

David Pollak

unread,
Jan 26, 2011, 12:43:45 PM1/26/11
to lif...@googlegroups.com
On Wed, Jan 26, 2011 at 9:38 AM, Diligiant <fred...@none.net> wrote:
Hi,

I've tried unsuccessfully different things to remove an attribute like "#sui_educStageLi [class]" #> "" which renders as <... class>

There's a bug in 2.2 where Html5 incorrectly emits deleted attributes.

The correct way to remove an attribute is:

val blank: Option[String] = None
"#thing [class]" #> blank
 

Is there a way to do this ? I'd also like to be able to do [attr-].

Thank you,

Frédéric

--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to lif...@googlegroups.com.
To unsubscribe from this group, send email to liftweb+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/liftweb?hl=en.



--
Lift, the simply functional web framework http://liftweb.net
Beginning Scala http://www.apress.com/book/view/1430219890
Follow me: http://twitter.com/dpp
Blog: http://goodstuff.im
Surf the harmonics

Diligiant

unread,
Jan 26, 2011, 1:01:53 PM1/26/11
to lif...@googlegroups.com
thank you.
Reply all
Reply to author
Forward
0 new messages