Hi,
or (as I'm doing it) add to your XUL document XML namespace of XHTML. E.g:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
<?xml-stylesheet href="test.css" type="text/css"?>
<!DOCTYPE window [
   <!ENTITY % htmlDTD PUBLIC "-//W3C//DTD XHTML 1.1//EN" "
http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
   %htmlDTD;
]>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";

       xmlns:html="http://www.w3.org/1999/xhtml";
       id="test-window" title="Test Window">
<description>Something what we want to be <html:strong>bold</html:strong>.
And also we can use XHTML entities like
<html:code>&copy;</html:code>.</description>
</window>

If you want to style these elements, you need also add this xmlns into your
CSS file. Something like this:

@namespace url("
http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";);
@namespace html url("http://www.w3.org/1999/xhtml";);

description html|strong {font-style:italic;}

By,
ondrejd.


On 4/22/07, Frederik Vanderstraeten <[EMAIL PROTECTED]>
wrote:

Put the parts that have to be bold in their own description elements and
add a bold style to those.

Michael Vincent van Rantwijk schreef:
> I need to use some styling in some of our description elements so I
> tried description.value and description.textContent to something like
> "This should be <b>bold</b>" but that didn't work.
>
> Anyone here know how to do this?
>
> Cross posted on: m.d.extensions
>
> TIA,
> Michael
>
> _______________________________________________
> Project_owners mailing list
> [email protected]
> http://mozdev.org/mailman/listinfo/project_owners
>
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners

Reply via email to