准备使网站兼容 Internet Explorer 8

发布于 2024-09-24 03:16:29 字数 1018 浏览 1 评论 0原文

我刚刚接管了一个 大型 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

面如桃花 2024-10-01 03:16:29

Javascript

CSS

Javascript

CSS

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文