准备使网站兼容 Internet Explorer 8
我刚刚接管了一个 大型 Web 应用程序 的维护工作,该应用程序包含超过 10,000 行 Javascript。
目前它可以在 Firefox 3.5+、Safari 4+ 和 Chrome 上运行,我必须让它与 IE8 兼容。
我是一个非常有经验的程序员,但我只有一点 Javascript 经验 - 尽管我已经接触到 quirksmode< 的可疑乐趣< /a> 我有一份 Javascript 的好部分。
Javascript使用了大量的 JQuery (其中很大一部分是很好的)。
我想以系统的方式进行此操作,并希望获得有关如何构建我的移植活动的建议。
一般方法是旧的“OpenBSD 概括”策略 - 当发现跨站点错误时,系统地搜索代码库以查找可能发生该问题的其他位置并修复它们。
BGerrison 刚刚指出我还需要考虑 CSS 兼容性,所以让我们也将其排除在外。
到目前为止,我想出的方法是:
- 运行 jslint 并修复任何 linting bug
是否存在在投入之前我应该采取哪些结构化步骤或我应该熟悉的资源?
更新
我发现 Opera 10 中的控制台会检查你的 css 并报告任何 css 拼写错误和其他内容...
I have just taken over maintenance of a large web application which is over 10,000 lines of Javascript.
At the moment it runs on Firefox 3.5+, Safari 4+ and Chrome and I have to make it work with IE8.
I am a very experienced programmer but I only have a little Javascript experience - although I have been introduced to the dubious pleasure of quirksmode and I have a copy of Javascript The Good Parts.
The Javascript uses a lot of JQuery (and so great chunks of it are good to go).
I want to go about it in a systematic manner and would like advice on how to structure my porting activities.
The general methodology is the old 'OpenBSD generalise' strategy - when a cross-site bug is found systematically search the code base for other places where that might occur and fix them out.
BGerrison has just pointed out that I need to consider CSS compatibility as well, so lets chuck that in the mix too.
So far all I have come up with for a methodology is:
- run jslint and fix up any linting bugs
Are there any structured steps I should take or resources I should be familiar with before I plunge in?
Update
I discovered that the console in Opera 10 kinda lints your css and reports any css typos and stuff...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Javascript
CSS
Javascript
CSS