Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 204815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:30:04+00:00 2026-05-11T17:30:04+00:00

I’m trying to write a bookmarklet to help some QA testers submit useful debugging

  • 0

I’m trying to write a bookmarklet to help some QA testers submit useful debugging information when they come across issues. Currently I can set window.location to a URL that provides this debugging information, but this resource is an XML document with an xml-stylesheet processing directive.

It would actually be more convenient if the testers were able to see either the raw XML data as plain text, or the default XML rendering for IE and Firefox.

Does anyone know a way to disable or override xml-stylesheet directives provided inside an XML document, using Internet Explorer or Firefox?

Edit: I’ve opened a bounty on this question. Requirements:

  • Client-side code only, no user intervention allowed
  • Solutions for both IE and Firefox needed (they can be different solutions)
  • Disabling stylesheet processing and rendering it as text is acceptable
  • Overriding stylesheet processing with a custom XSL is acceptable
  • Rendering the XML with the browser default XML stylesheet is acceptable
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:30:04+00:00Added an answer on May 11, 2026 at 5:30 pm

    EDIT: too bad, though all seemed fine in the preview, the clickable examples seem to mess up things… Maybe the layout is fine in the history.

    I’ve heard, but cannot validate for IE, that both IE and Firefox support the “view-source:” pseudo-protocol. Firefox on Mac indeed understands it, but Safari does not.

    The following bookmarklet will not trigger the XSLT transformation specified in the XML. And though Firefox will render this using some colours, it does not execute the default transformation it would normally use for XML without any XSLT (so, the result of view-source does NOT yield a collapsable document tree that Firefox would normally show):

    javascript:(function(){
      var u = 'http://www.w3schools.com/xsl/cdcatalog_with_ex1.xml';
      var w = window.open();
      w.document.location.href = 'view-source:' + u;
    })()
    

    When fetching the document using Ajax then one is not limited to the alert oneporter used, but can display it in a new window as well. Again: this will not invoke the XSLT transformation that is specified:

    javascript:(function(){
      var u = 'http://www.w3schools.com/xsl/cdcatalog_with_ex1.xml';
    
      var w = window.open(); /* open right away for popup blockers */
    
      var x = new XMLHttpRequest();
      x.open('GET', u, true); 
      x.onreadystatechange = function(){
        if(x.readyState == 4){
          w.document.open('text/html');
          /* hack to encode HTML entities */
          var d = document.createElement('div'); 
          var t = document.createTextNode(x.responseText); 
          d.appendChild(t);
          w.document.write('<html><body><pre>' 
              + d.innerHTML + '</pre></body></html>');
          w.document.close();
          w.focus();
        }
      };
      x.send(null); 
    })()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 105k
  • Answers 105k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Do not use bcc32.exe but cpp32.exe. See here for more… May 11, 2026 at 8:43 pm
  • Editorial Team
    Editorial Team added an answer You need to add a VERSIONINFO resource to your project,… May 11, 2026 at 8:43 pm
  • Editorial Team
    Editorial Team added an answer Probably because of the wildcard, IIS sends the request to… May 11, 2026 at 8:43 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.