Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

tr and td tags removed on Windows 8.1 #25

Open
sebarslan opened this issue Jan 29, 2016 · 6 comments
Open

tr and td tags removed on Windows 8.1 #25

sebarslan opened this issue Jan 29, 2016 · 6 comments

Comments

@sebarslan
Copy link

Hi,
kendo ui grid does not display correctly in Windows 8.1

tr and td tags is removed on Windows 8.1.

Windows 8.1
http://prntscr.com/9wav54

Windows 10
http://prntscr.com/9wavmt

thanks

@montella1507
Copy link

Yes, we have the same problem in every application.. i hope it will be solved :-(

http://imgur.com/7DP8olq

@sebarslan
Copy link
Author

I think, today I've found for kendo grid a solution and it works.

Change the function

function insertAdjacentHTML(element, position, html) {
HTMLElement_insertAdjacentHTMLPropertyDescriptor.value.call(element, position, html);
}

to

function insertAdjacentHTML(element, position, html) {
if(html.indexOf("<tr") === 0 && element.indexOf("<tbody") !== 0 ) {
element = '<tbody role="rowgroup"></tbody>';
}
HTMLElement_insertAdjacentHTMLPropertyDescriptor.value.call(element, position, html);
}

@montella1507
Copy link

Great i will try.. but this is propably the solution only for one thing (Kendo grid) and we have to count with problems with other components too :-( So it would be nice to have common fix for these issues..

@sebarslan
Copy link
Author

Yes. you're right.

@montella1507
Copy link

Atleast,.. good work, it works for me.. how did u debug the compat-js code? I am using Visual Studio to package Apache cordova app and i think i am not able to debug "native" js code

@sebarslan
Copy link
Author

I also use cordova javasript app and debug mode works. But I do not know, if you can debug the native code.

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

No branches or pull requests

2 participants