I am developing my first Firefox extension and for that I need to get the complete source code of the current page. How can I do that with XUL?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
really looks like there is no way to get “all the sourcecode”. You may use
to get the innerHTML of the top element (usually html). If you have a php error message like
the innerHTML would be
but the error message would still retain
edit: documentElement is described here:
https://developer.mozilla.org/en/DOM/document.documentElement