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

IE 8 兼容依然不好 #1

Open
TechQuery opened this issue Jul 12, 2016 · 4 comments
Open

IE 8 兼容依然不好 #1

TechQuery opened this issue Jul 12, 2016 · 4 comments
Assignees
Labels

Comments

@TechQuery
Copy link
Owner

iQuery.js 最近几个版本,项目官网主页在原生 IE 8 中_每次打开调试器都直接报错崩溃_……

@TechQuery TechQuery added the bug label Jul 12, 2016
@TechQuery TechQuery self-assigned this Jul 12, 2016
@TechQuery
Copy link
Owner Author

@RubyLouvre 我是您《JavaScript 框架设计》的读者,书已翻旧。

我实现的这个 jQuery 兼容库浏览器兼容策略是 ——

核心实现基于 ECMA、W3C 标准 API,通过独立的 Polyfill 模块来兼容各大浏览器不同版本的缺陷,以期“核心简洁、方便裁剪”

但目前,IE 8/9 上的性能一直不好,我觉得可能与“核心调用的标准 API 不少是 JavaScript 模拟实现的,调用栈更深”有关。

希望司徒正美大牛能帮我 review 一下代码,给我一些指导,十分感谢!~

@RubyLouvre
Copy link

不要乱搞元素的原型

@TechQuery
Copy link
Owner Author

TechQuery commented Jul 13, 2016

我看到一些比较老的技术博客写过 IE 6/7 时代把 Firefox 的 HTMLElement 模拟成 IE 私有 API 这种“向前兼容,面向历史”的兼容策略,@RubyLouvre 您书中也写了把 IE 实用方法 HTMLElement.prototype.insertAdjacentElement 模拟出来给其它浏览器用。

而且,我往 JS/DOM 原型上加的都是 ECMA/W3C 最新标准 API

@RubyLouvre
Copy link

加太多了就会有问题

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

No branches or pull requests

2 participants