这是IE10的BUG吗? ASP .NET MVC3 + HTML5 + IE10预览版
我用 asp.net MVC3 和 HTML5 编写了一个小测试项目。 也许我很愚蠢,或者我在Internet Explorer 10的预览中发现了一个错误。
测试用例:
使用VS2010创建一个asp.net MVC3项目作为Internet应用程序。 打开索引文件并将包含一些文本的 html5 部分属性写入文件中并保存。 向该部分添加 ID,并在 site.css 中为其设置背景颜色。 启动应用程序。一切都会很好。您将看到文本,并且该部分具有您定义的颜色。 现在创建一个帐户,转到登录页面并进行登录。 就我而言,该部分不再具有我定义的颜色 - 真的很奇怪。 按F5后颜色又回来了。
我查看了源代码,一切似乎都很好,其中有一个部分,但经过一番研究后,我发现在调试器中 HTML 代码不太好。 问题是:调用 MVC3 RedirectToAction 方法(即登录时发生的情况)后,IE10 无法再处理部分属性。它不存在于集成调试器的源代码中。 我在所有其他新浏览器中尝试了该代码,它运行得很好。
如果有人可以测试并检查问题是我还是浏览器,那就太好了。
I wrote a little test project with asp.net MVC3 and HTML5.
Maybe I am stupid or I found a bug in the preview of Internet Explorer 10.
The testcase:
Create an asp.net MVC3 Project as an Internet Application with VS2010.
Open the index file and write a html5 section attribute with some text inside into the file and save it.
Add an ID to the section and set a background color in site.css to it.
Start the app. Everything will work fine. You will see the text and the section has the color you defined.
Now create an Account go to the LogOn Page und do a login.
In my case the section no longer has the color I defined - really strange.
After pressing F5 the color was back again.
I looked in the source code and everything seemed to be okay, there was a section in it but after a little research I found out that in the debugger the HTML code wasn't okay.
The Problem is: After calling a MVC3 RedirectToAction Method (that is what happens when you do a login), the IE10 can not handle the section attribute anymore. It doesn't exist in the source code of the integrated debugger.
I tried the Code in all other new Browsers and it works perfectly.
It would be very nice if someone could test and check if the problem is me or the browser.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当然IE10也有bug。如果没有,那它就不是预览版,而是最终版本。
预览的目的不是让您发现错误,大多数错误可能会通过他们的测试发现。预览的目的是让您能够获得该工具的经验,并有一些东西可以使用 html 5。
您至少需要等待测试版或候选发布版本,然后才需要依赖它来保持稳定。
Of course there are bugs in IE10. IF there weren't, it would not be a preview, it would be a final release.
The purpose of the preview is NOT for you to find bugs, most of those bugs will likely be found by their testing. The purpose of a preview is so that you can gain experience in the tool, and have something to play with html 5 against.
You're going to need to wait for at least a beta or release candidate before you should even bother relying on it to be stable.