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 3787068
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:46:57+00:00 2026-05-19T11:46:57+00:00

The page you are viewing right now has the HTTP header element of Content-type:

  • 0

The page you are viewing right now has the HTTP header element of Content-type: text/html. HTML displayed normally and JavaScript will be executed. If you have a Content-Type: text/javascript then the JavaScript is not executed, it is only displayed.

My question is: Are there content-type’s other than text/html that will execute JavaScript? I wold like as complete of a list as possible for any common browser (IE,Firefox,Chrome,Safari).

  • 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-19T11:46:58+00:00Added an answer on May 19, 2026 at 11:46 am

    I don’t know of a full list, and it may well be that no such list exists publicly. You may have to find out for yourself. (Although I don’t think anything speaks against setting up a test page with a number of iframes, and asking the SO community to provide data with their respective browsers. It’s been done before.)

    In Internet Explorer, this one should definitely be on the list:

    • application/hta for Hypertext Applications

    Candidates that I would test for (because it’s conceivable a careless programmer might activate them for HTML parsing) include:

    • application/form-data
    • text/xhtml+xml (used to be proposed in 2000, no idea what happened to that)

    However, I tested those with both Chrome 9 and the latest Firefox, and they reject everything except text/html. Firefox shows them as downloadable resources instead, which I think eliminates them from your equation as any JS therein will be executed in the local context rather than the URL’s. (IE is executing everything including text/plain for me, but I think that is a header mixup with my server.)

    If you want to go for hard-core sure for the Open Source browsers, check their source code or ask on their mailing lists/forums. I have a feeling the good ones have text/html hard-coded.

    Edit: Arrgh! Firefox, Chrome and IE parse HTML, and execute scripts, regardless of content type – I successfully managed to set Content-type: text/poppycock – when the resource’s extension is .htm or .html. That means that you have to test not only for MIME types, but for file extensions (which should not play any role in HTTP) as well. Didn’t know that – this was probably introduced to fix the output of broken web servers. Stuff like this is why I don’t work in IT security 🙂

    All tests made on Windows 7.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

The page I'm trying inspect has a hidden <input type=hidden name=Foo value=123 /> element
I'm experimenting with this sample page on jsbin: http://jsbin.com/igeca4/edit The height right now is
The page has a container div which holds multiple content divs. Each content div
I want to make an html page available for offline viewing by downloading the
On a JSF page for viewing data, I've an OpenFaces datatable with sorting and
While viewing the source of a web page, I came across this CSS, applied
Page A has a meta refresh to redirect to another page, C , after
Page has menu items that would replace a 'div id=foo_(current menu item)' with 'div
Page in question: http://phwsinc.com/our-work/one-rincon-hill.asp In IE6-8, when you click the left-most thumbnail in the
I'm trying to duplicate the Android UI left-right gesture type of navigation. This is

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.