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

  • Home
  • SEARCH
  • 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 587251
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T15:11:35+00:00 2026-05-13T15:11:35+00:00

Is there any difference in <noscript> block processing for pages served with MIME-type text/html

  • 0

Is there any difference in <noscript> block processing for pages served with MIME-type text/html versus those served with MIME-type application/xhtml+xml?

As far as I noticed <noscript> block for text/html pages is not processed at all if JavaScript is disabled in browser. And what happens for application/xhtml+xml pages? I suspect that for such pages the block is still analysed when JavaScript is disabled. But I failed to find any clarification of this issue.

Could someone point me to appropriate W3C standard or provide any other clarification?

PS. Situation of interest is visit counting services wich use <noscript> block to track visitors with disabled JS. If elements (for example, zero-sized images) of <noscript> blocks are downloaded in any case then such services should broke 🙁

  • 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-13T15:11:35+00:00Added an answer on May 13, 2026 at 3:11 pm

    The best description is probably the one in the HTML5 draft here : http://dev.w3.org/html5/spec/semantics.html#the-noscript-element.

    In text/html, the details of exactly what happens are quite complex. Just follow the link above. No point in reproducing here.

    For application/xhtml+xml, the draft says:

    The noscript element must not be used in XML documents.

    The noscript element is only effective in the HTML syntax, it has no effect in the XHTML syntax.

    So in application/xhtml+xml, the contents of noscript should be displayed regardless of whether scripting is available or not. Of course, if scripting is enabled, it’s pretty trivial to use script to remove such elements from the DOM.

    CORRECTION.

    On further research, what the above quote means I think, is that the noscript element has no effect on the parsing.

    In the XHTML section here, http://dev.w3.org/html5/spec/the-xhtml-syntax.html#the-xhtml-syntax, the draft says

    The user agent is expected to hide noscript elements for whom scripting is enabled, irrespective of CSS rules.

    So, as you say, when scripting is enabled the noscript element does hide its contents. However, that’s all it does, and images are loaded anyway. In addition, I tried this:

    <html xml:lang="en-GB" xmlns="http://www.w3.org/1999/xhtml" lang="en-GB">
      <head> 
        <title>Test</title>
      </head>
      <body>
        <p>Test 1</p>
        <noscript id="ns">
          <p>Test 2</p>
          <script type="text/javascript">
            document.getElementById("ns").parentNode.removeChild(document.getElementById("ns"));
          </script>
          <img src="test.gif" alt="test"/>
        </noscript>
      </body>
    </html>
    

    And although the noscript node is removed from the dom, Firefox still tried to load the image.

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

Sidebar

Ask A Question

Stats

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

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

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

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

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Looks like your code assumes that the .create() function was… May 13, 2026 at 7:21 pm
  • Editorial Team
    Editorial Team added an answer Yes. 1em and 100% mean the same thing (for font-size)… May 13, 2026 at 7:21 pm
  • Editorial Team
    Editorial Team added an answer The most accepted (and in my opinion the most usable)… May 13, 2026 at 7:21 pm

Related Questions

Is there any difference in both of these snippets: Writing this snippet at the
Is there any difference between following two ways of creating an object. Student s1
Wonder what the difference between: static PROCESSWALK pProcess32First=(PROCESSWALK)GetProcAddress(hKernel,Process32First); ... pProcess32First(...); what is hKernel? Look
Which one of these is the faster/better one? This one: List<User> list = new
I have seen two different approaches for creating generic repositories. What are differences between

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.