Hey David,

2009/3/14 David Galicia <[email protected]>:
> Can WWidget::setStyleClass() take qualified class names? For example if "ns"
> was an abreviation for a namespace, and if everything after the pipe
> character is the class name:
>
> fooWidget->setStyleClass("ns|contentWrapper");
>
> I tried this myself, but it doesn't work; I could be doing something wrong
> though.
>
> Here's WC3 specfication for CSS namespaces:
> http:///www.w3.org/TR/2008/CR-css3-namespace-20080523/

The way I understand the specification is a bit different, though.

If fooWidget had a tag that lived in a namespace (e.g.
http://my.web.com/) , and a style class "contentWrapper", then you
would be able to specify the style for that class using
ns|contentWrapper where you declare ns to be that same namespace
(http://my.web.com/). Thus, the CSS namespace support is to complement
the XHTML namespace support.

While Wt uses namespaces when rendering XHTML with inline SVG, since
it does not allow access to the actual svg image content (it is
abstracted by WPainter and WPaintDevice), style classes in namespaces
do not apply to that use case.

What are you trying to achieve?

Regards,
koen

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to