Hi,
This is logged as https://bugzilla.mozilla.org/show_bug.cgi?id=453523 .
It's not expected behaviour, because this same problem was fixed on gtk
prior to the 1.9 release, see
https://bugzilla.mozilla.org/show_bug.cgi?id=415789 .
Grant
Dmitry Dartz d...@yandex.ru wrote in message
hi, all
Now, I'm make a Xpcom-glue program, I want to use a nsDocumentEncoder to dump
the DOM content.
nsCOMPtrnsIDocumentEncoder encoder =
do_CreateInstance(NS_DOC_ENCODER_CONTRACTID_BASE text/plain, rv);
if (NS_FAILED(rv))
return rv;
...
nsCString charset;
nsCOMPtrnsIDocument doc = do_QueryInterface(aDocument);
NS_ASSERTION(doc, Need a document);
nsCString charset= doc-GetDocumentCharacterSet();
Is there a reason you're not using the DOM API here instead of the
more-or-less
On Dec 31 2008, 3:24 pm, Drew drewt...@gmail.com wrote:
I'm attempting to get the mousewheel working for my embedding browser.
Here's where I'm stuck.
If I set the focus on an element in a page (drop-down, textbox, or
press tab to an element) I receive WM_MOUSEWHEEL events in my message
Hi, could you guys tell me how to hook the event or notification when
the embedding browser is going to be closed by javascript in the page.
___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding
sonicfly wrote:
Hi, could you guys tell me how to hook the event or notification when
the embedding browser is going to be closed by javascript in the page.
___
dev-embedding mailing list
dev-embedding@lists.mozilla.org
Thanks, Boris!
I want to dump a DOMDocument with a nsIDocumentEncoder,
Originally, I use nsIDOMSerializer to serialize the DOMDocument, internally
nsIDOMSerializer
use nsIDocumentEncoder with nsXMLContentSerializer to serialize the
DOMDocument,
but Now what I want is a nsIDocumentEncoder with
zz wrote:
Now, I think I can implement a nsHTMLSerializer class just like
nsDOMSerializer to solve this problem.
By the way, which DOM API can do the same document-dump thing?
There isn't one, but there _is_ one that will give you the charset.
nsIDOMNSDocument has a characterSet property.
zz wrote:
nsCString charset;
Make that nsString. Then you'll have to convert to UTF8 to get the
string to pass to the encoder.
so, the same nsCString_external nsAString problem.
No, this is a different problem. You're passing a narrow string to a
function that wants a
Yes, you are right!
I changed to nsString, and use NS_ConvertUTF16toUTF8(charset), and
everything goes well.
Thank you very much!!!
- zz
Boris Zbarsky bzbar...@mit.edu
??:xogdntdt19fzdp_unz2dnuvz_hydn...@mozilla.org...
zz wrote:
nsCString charset;
Make that nsString. Then
10 matches
Mail list logo