Forums
View unanswered posts | View active topics It is currently Thu May 23, 2013 10:11 pm



Reply to topic  [ 3 posts ] 
 IE8 rending PIE html as text (when using Knockout 2.0) 
Author Message

Joined: Mon Feb 13, 2012 9:03 pm
Posts: 2
Post IE8 rending PIE html as text (when using Knockout 2.0)
I'm having a strange issue in IE8 on some dynamically created elements.

The pie html is rendering on the screen as text in the page
e.g. <:css3-container style="Z-INDEX: auto; POSITION: absolute; DIRECTION: ltr; TOP: 5px; LEFT: 83px"><:background style="POSITION: absolute; TOP: 0px; LEFT: 0px"><:group2><:border style="POSITION: absolute; TOP: 0px; LEFT: 0px"><:css3-container style="Z-INDEX: auto; POSITION: absolute; DIRECTION: ltr; TOP: 42px; LEFT: 166px"><:background style="POSITION: absolute; TOP: 0px; LEFT: 0px"><:group2><:border style="POSITION: absolute; TOP: 0px; LEFT: 0px">

However the elements still have the correct styles being rendered.

This wasn't an issue for us until we upgraded from Knockout 1.2 to 2.0 and changed the way some templating is done.

Has anyone experienced anything similar or have any advice? I can't find much info about this issue via google.


Mon Feb 13, 2012 9:10 pm
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1396
Post Re: IE8 rending PIE html as text (when using Knockout 2.0)
I'm not familiar with Knockout but it sounds like it's trying to rewrite contents of the page by copying innerHTML -- there are two big problems with this approach:

1) IE has a nasty bug where it returns invalid HTML (like you're seeing) when querying innerHTML that contains VML elements
2) PIE expects to have control over its own rendering elements and to be able to maintain references, but by copying innerHTML it is breaking those references. This is not an issue unique to PIE, and I expect it would cause problems with any other script that maintains DOM references.

I'm not sure what advice to give you, perhaps the Knockout developers would have more insight. I don't see any feasible way PIE could avoid these issues.


Tue Feb 14, 2012 11:27 am
Profile

Joined: Mon Feb 13, 2012 9:03 pm
Posts: 2
Post Re: IE8 rending PIE html as text (when using Knockout 2.0)
Thanks Jason. I'll try the knockout forums and post back here if we find a solution.


Tue Feb 14, 2012 3:51 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.