mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 16:37:02 +03:00
Removed more IE workarounds from knockoutjs
This commit is contained in:
parent
9241726ffe
commit
118c1613a4
12 changed files with 160 additions and 455 deletions
|
|
@ -25,12 +25,6 @@
|
|||
var windowContext = documentContext['parentWindow'] || documentContext['defaultView'] || window;
|
||||
|
||||
// Based on jQuery's "clean" function, but only accounting for table-related elements.
|
||||
// If you have referenced jQuery, this won't be used anyway - KO will use jQuery's "clean" function directly
|
||||
|
||||
// Note that there's still an issue in IE < 9 whereby it will discard comment nodes that are the first child of
|
||||
// a descendant node. For example: "<div><!-- mycomment -->abc</div>" will get parsed as "<div>abc</div>"
|
||||
// This won't affect anyone who has referenced jQuery, and there's always the workaround of inserting a dummy node
|
||||
// (possibly a text node) in front of the comment. So, KO does not attempt to workaround this IE issue automatically at present.
|
||||
|
||||
// Trim whitespace, otherwise indexOf won't work as expected
|
||||
var tags = ko.utils.stringTrim(html).toLowerCase(), div = documentContext.createElement("div"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue