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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:25:16+00:00 2026-05-20T11:25:16+00:00

Possibly a daft question, but I’m having trouble with document.querySelectorAll(). I’m trying to find

  • 0

Possibly a daft question, but I’m having trouble with document.querySelectorAll().

I’m trying to find a tag with a mime-type as it’s property. For example

document.querySelectorAll('style[type=text/css]');

On Chrome 9, this throws the following error

Uncaught Error: SYNTAX_ERR: DOM Exception 12

If I omit the type attribute, it does not throw an error. If I remove the forward slash it also does not throw an error (but obviously does not return any nodes).

I know there are simple work arounds getting all elements, and testing each one for it’s type property, but I curious why this isn’t working. Do I need to escape the forward slash? Or perhaps is this simply not a supported selector in Chrome 9?

  • 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-20T11:25:17+00:00Added an answer on May 20, 2026 at 11:25 am

    Have you tried

    document.querySelectorAll('style[type="text/css"]');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possibly a silly question, but I'm having no luck finding an answer. Using Visual
I'm possibly just stupid, but I'm trying to find a user in Active Directory
possibly a simple question, but I couldn't find definitive answer (see below for excerpt
This is possibly answered somewhere already but had trouble searching for it as I
Possibly a duplicate, but I couldn't find an exact answer to my problem searching
Possibly a dumb question but I have a number of entities all inheriting from
Possibly really simple question, but I'm new to IronPython. I would like use IronPython
possibly it's a stupid question, but I would like to know if it is
This sounds like a daft question at first, but bear with me. It is
Possibly a redundant and useless question, but my colleagues and I refer to <%

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.