Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

innerHTML is read-only on HTML elements in IE #24

Closed
defunctzombie opened this issue Nov 4, 2013 · 7 comments
Closed

innerHTML is read-only on HTML elements in IE #24

defunctzombie opened this issue Nov 4, 2013 · 7 comments

Comments

@defunctzombie
Copy link
Contributor

http://msdn.microsoft.com/en-us/library/ie/ms533897(v=vs.85).aspx

This causes failures in IE 8 and 9
https://saucelabs.com/tests/c0f4b2a83e1f4cc381f67da3434c7987

@jonathanong
Copy link
Contributor

i think the first two tests fail (i don't know why i can't see the trailing whitespace one) in IE8 because of the use of .textContent. too bad we can't see the stack trace.

not sure about the others. <col> should work with the wrap map, but i don't know why it doesn't.

@defunctzombie
Copy link
Contributor Author

Wonder if there is a way to get the stack trace.
On Nov 4, 2013 8:33 PM, "Jonathan Ong" notifications@github.com wrote:

i think the first two tests fail (i don't know why i can't see the
trailing whitespace one) in IE8 because of the use of .textContent. too
bad we can't see the stack trace.

not sure about the others. should work with the wrap map, but i
don't know why it doesn't.


Reply to this email directly or view it on GitHubhttps://github.com//issues/24#issuecomment-27739992
.

@matthewmueller
Copy link
Contributor

Dug into this a bit deeper. This has more to do with IE8/9 going into quirks mode. Adding a doctype should fix the problem.

You should end up with test results that look like this: https://cloudup.com/cFn1F4yq8v2

@defunctzombie
Copy link
Contributor Author

Oh nice. I will see if I wasn't adding a doctype. I dont really care about
old IE but figured it would be nice.
On Dec 17, 2013 12:26 PM, "Matthew Mueller" notifications@github.com
wrote:

Dug into this a bit deeper. This has more to do with IE8/9 going into
quirks mode. Adding a doctype should fix the problem.

You should end up with test results that look like this:
https://cloudup.com/cFn1F4yq8v2


Reply to this email directly or view it on GitHubhttps://github.com//issues/24#issuecomment-30771275
.

@matthewmueller
Copy link
Contributor

There's no easy fix for the readonly properties. Here's some possible solutions:

http://webbugtrack.blogspot.ca/2007/12/bug-210-no-innerhtml-support-on-tables.html

@defunctzombie
Copy link
Contributor Author

I hate IE. This is why we can't have nice things.

@pgilad
Copy link

pgilad commented Jul 13, 2015

How does jquery handle this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants