Discover how to debug javascript in ie 11, include the articles, news, trends, analysis and practical advice about how to debug javascript in ie 11 on alibabacloud.com
Summary of incompatibility and unified methods between IE and Firefox in Javascript zhoz
, Technical Development
, Comment (3)
, Reference (0)
, Reading (2127)
, Via original site
Large| Medium| Small
Reference address:
Note:
This address is valid only before 23:59:59 today.
Test todayCodeBut an error is reported in ff.The incompatibility and unified methods of
Full-stack JavaScript path (22) IE proprietary extension-document mode, javascript path
Ie8 introduces a new concept, "document mode". The document mode of the page determines what functions can be used. That is to say, the "document mode" determines the level of css you can use and what APIs you can use in javascript
Code code as follows:
4. Start Visual Studio and click the "Tools"-"Attach to process" menu in the VS menu to open the "Attach to process" window. Visual Studio actually supports a variety of debugging modes, debugging C + + (native) programs, and debugging. NET (Managed) programs, debug scripts, debug Silverlight programs, and debug SQL stored
Compilation of JavaScript IE and FF compatibility
SubmittedJiashixiangOn 2006, July 28, PM. Javascript Learning
Internet Explorer is replaced by IE and mozzila Firefox is replaced by MF.
1. Document. Form. Item Problems(1) existing problems:Many statements such as document. formname. Item ("itemname") exist in the exis
The incompatibility and unified methods of IE and Firefox in JavaScript are summarized as follows:1. compatible with Firefox's outerhtml and FF, there is no outerhtml method. If (window. htmlelement ){
Htmlelement. Prototype. _ definesetter _ ("outerhtml", function (shtml ){
VaR r = This. ownerdocument. createRange ();
R. setstartbefore (this );
VaR df = R. createcontextualfragment (shtml );
This. parentnod
. Ieignore this parameter and use thewindow.eventto read theEvent. Workaround:Iefirefox:Submitted (event) "/>... ..JS Code1 9.event.x and EVENT.Y problemsDescription: Under IE, the even object has an X, y attribute but no pagex,pagey attribute; Under Firefox, the even object has the Pagex,pagey property, but there is no X, Y property.Workaround: Use mx (mx = event.x event.x:event.pagex;) to replace the event.x under
Http://www.chinaunix.net Author: honestqiao published on: 09:53:27[Comment] [View Original] [HTML/JavaScript discussion board] [close]
[Learning] compilation of JavaScript IE and Firefox compatibilityInternet Explorer is replaced by IE and mozzila Firefox is replaced by MF.1. Document. Form. Item Problems(1) existing p
Developer ToolsNow the General browser has built-in developer tools, shortcut key F12 can be opened, such as Chrome browser, under the sources panel to find the corresponding JS fileThis is the preferred method, but for spa programs (such as Easyui), inline pages may not be found. So if it's a spa program, you might want to think about other methods.vs Next Breakpoint at JS codeThis method is not used for spa inline pages, but you can use the Debugger keyword to set breakpoints manually , as fol
Sort out some solutions to the compatibility between JavaScript IE and Firefox, and have better methods for communication; 1. Document. Form. Item Problems
(1) existing problems:
Existing
Code There are many statements such as document. formname. Item ("itemname"), which cannot be run in Firefox.
(2) solution:
Use document. formname. elements ["elementname"]
(3) Others
See 22. Collection class Object Probl
Compilation of Javascript IE and Firefox compatibility [zt]
Internet Explorer is replaced by IE and Mozzila Firefox is replaced by MF.
1. document. form. item Problems(1) existing problems:Many statements such as document. formName. item ("itemName") exist in the existing code and cannot be run in MF.(2) solution:Use document. formName. elements ["elementName"](
Javascript
Following IE instead of Internet Explorer, MF replaces Mozzila Firefox
1. Document.form.item question(1) Existing problems:There are many Document.formName.item ("itemname") statements in existing code that cannot be run under MF(2) Solution:Switch to document.formname.elements["ElementName"](3) OtherSee also 2
2. Collection Class object problem(1) Existing problems:Many collection class objects
this function, and time (name) creates 1 new timers based on name. Timeend (name) stops the timer for the given name and displays the time.12 Console.profile (name)/console.profileend ()This set of methods is used to open the browser parser to analyze the JS execution between the set of functions, note: Firebuglite does not support the profile function, Chrome supports profiles, but the content of the analysis is unknown.13 Console.count ([title])The Count method is used to count how many times
Differences between Firefox and IE on JavaScript and CSS
Keywords: javascript; CSS; Firefox; ie; Difference1. Document. formname. Item ("itemname ")Note: in IE, you can use document. formname. Item ("itemname") or document. formname. elements ["elementname"];In Fire
Bug 1:1. The data in this is just a one-dimensional array{"state": 0, "ErrorCode": 0, "data": {"Originalname": "", "Name": "3e12cdbd9d855449440035b3fdaf78bd.png", "url": "Images\/release\/3\/d\/3e12cdbd9d855449440035b3fdaf78bd.png", "Real_url": "Http:\/\/cache.hinabian.com\/images\/release\/3\/d\/3e12cdbd9d855449440035b3fdaf78bd.png "," size ": 94064," type ":". png "," state ":" SUCCESS "}}2. The data in this is a two-dimensional array, is not good to hear is the background is the two-dimension
the vs menu, and open the "attach to process" window. Visual Studio supports many debugging modes, including debugging C ++ (native) programs, debugging. Net (hosted) programs, debugging script programs, debugging Silverlight programs, and debugging SQL stored procedures. By default, Visual Studio selects the most suitable debugging mode based on the additional process type, but sometimes you need to set it manually. For example, Internet Explorer can run multiple subprograms at the same time.
========================================================== ====================================
References
Http://nexgenmedia.net/evang/iemozguide/
Http://www.javascriptkit.com/domref/
Pass
FirefoxBuilt-in tool learning methods:
Open TOOLS> dom inspector, select a control on the left, and select javascript object on the right.
Debug javascript with built-in t
With more and more web design application of JavaScript technology, and browser JavaScript engine running speed has become a major browser performance indicators, the browser vendors are claiming that their browser faster, hoping to stir the existing competitive situation. The JavaScript speed of the IE8 browser is significantly higher than the IE7 and IE6, but t
Compatibility between IE and Firefox in Javascript
1.doc ument. formname. Item ("itemname ")Note:In IE, you can use document. formname. Item ("itemname") or document. formname. elements ["elementname"];In Firefox, only document. formname. elements ["elementname"] can be used.Solution:Use document. formname. elements ["elementname"].Text1:Document. formna
Compilation of Javascript IE and Firefox compatibility
Source: soft test information collection
Time: 9:05:59
Type: Basic
Internet Explorer is replaced by IE and Mozzila Firefox is replaced by MF.1.
specifications.You can avoid this problem by using node. getelementsbytagname.When the HTML node is missing, ie and Firefox have different interpretations of parentnode, for exampleIn Firefox, the value of input. parentnode is form, while that of input. parentnode in IE is empty.
The node in Firefox does not have the removenode method. You must use the following method: node. parentnode. removechild (node)
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.