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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:56:33+00:00 2026-05-25T17:56:33+00:00

I have the following HTML intending to make sure that the inner span isn’t

  • 0

I have the following HTML intending to make sure that the inner span isn’t editable. This works in other browsers but not IE8.

<div contenteditable="true">
  Luke, I am your father.
  <span contenteditable="false">I'm your son?! Ewww!</span>
  Don't speak back to me!
</div>

Here’s a JSFiddle to illustrate the point (use IE8 to test it): http://jsfiddle.net/haxhia/uUKPA/3/ .

How do I make sure that IE8 treats this properly as well?

  • 1 1 Answer
  • 1 View
  • 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-25T17:56:35+00:00Added an answer on May 25, 2026 at 5:56 pm

    Okay, I already have discovered the answer much like how Penicillin was discovered.

    You see, playing around with this code, I mistakenly set contenteditable to true for the span and voila! It worked!

    So, to make a span NON-contenteditable inside a contenteditable div, you just set its contenteditable attribute to true!

    <div contenteditable="true">
      Luke, I am your father.
      <span contenteditable="true">I'm your son?! Ewww!</span>
      Don't speak back to me!
    </div>
    

    Here’s the file to demonstrate (use IE8 to open it): https://codepen.io/hgezim/pen/qMppLg .

    Lastly, I didn’t post the question to get votes (although, they wouldn’t hurt!), but since the solution was so ridiculous and I didn’t find it here, I thought someone may find this tip time saving.

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

Sidebar

Related Questions

I have following Html file with javascript. This gives me error that testCircle is
I have following html. How can I get this so that dragDiv is shown
I have the following html.erb code that I'm looking to move to Haml: <span
I have the following html/css that is causing problems in Firefox 1.5 and 2,
I have the following HTML: <span id=UnitCost5>$3,079.95 to $3,479.95</span> And i want to use
I have following html: <div class=rows> <div class=row><input type=text onchange=javascript:getIndex(this); value= /></div> <div class=row><input
I have following html: <table width=100%;> <tr><hr style=width:100%;></hr></tr> <tr> <span style=float:left>abc</span> <span class=noindex style=float:right>PageID</span>
I have the following html code for my php page. <span id=edit_button_<?php echo $row[$id];
I have the following HTML structure: <div class=outer> <div class=inner> <a href=#/> <a href=#/>
I have following HTML text to show an image that contains a link: <img

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.