Travis LeitheadãIEã§åºã"Operation Aborted"ãã¤ã¢ãã°ã®åå ããã³å¯¾çã(IEBlog)
ieblog 2008.4.23ã®ã¨ã³ããª
id:uupaaããã®tweetçµç±ã§ç¥ã£ãè¨äº
What Happened to Operation Aborted?
- IE使ã£ã¦ãã¨ãã«åºãã¨ã©ã¼ãã¤ã¢ãã°"Operation Aborted"ã解説ãã¦ãã¨ã³ããª
- ãããåºãã¨ãã¼ã¸å 容ãå ¨é¨ç ´æ£ãããã®ã§æã
- IE7以åã§ã¨ã©ã¼ãã¤ã¢ãã°ãåºãæ¡ä»¶ãIE8ã§ã®å¯¾å¦ã¨ãéçºè åãã®åé¿æ¹æ³ãã¾ã¨ã¾ã£ãã¨ã³ããª
- ãbodyè¦ç´ å ã«scriptè¦ç´ ã¯ç¦æ¢ãã®è«æ ã«ããªãã話
以ä¸æãèªãã å 容
- "Operation Aborted"ãã¤ã¢ãã°ãåºãã¨
- ä»è¦ã¦ããã¼ã¸ãè¦ããªããªã
- ãã¤ã¢ãã°åºãç´åã«è¡¨ç¤ºããã¦ãªãå 容ã¯ç ´æ£ããã
- ãã¤ã¢ãã°ãã¯ãªãã¯ããã¾ã§ã¯è¡¨ç¤ºãããå 容ã¯ç ´æ£ãããªãã®ã§æªããããã人ããã
- IE8beta1ã§ã¯ãã®æãæåã¯ã¹ããã
- "Operation Aborted"ãã¤ã¢ãã°ãåºãªããªã£ã
- ãã®ãã¤ã¢ãã°ã®å¯ä½ç¨ã§ãã表示å å®¹å ¨ç ´æ£ããªããªã£ã
- "Operation Aborted"ãã¤ã¢ãã°ãåºãªããªã£ã
- "Operation Aborted"ãã¤ã¢ãã°ã«ã¯çºçæ¡ä»¶ãã
- htmlãã¼ã¹ä¸ã«ä»¥ä¸ã®æ¡ä»¶ããã¹ã¦æºããã¨"Operation Aborted"
- 1.htmlãã¡ã¤ã«ã®ãã¼ã¹å¦çãå®è¡ä¸
- 2.åæã«ã¹ã¯ãªãããå®è¡ä¸
- 3.å®è¡ããã¦ãã¹ã¯ãªããããã¼ãã®è¿½å ã»åé¤ããã£ã¦ã
- 4.ãã¼ã¹ãå®äºãã¦ããªãï¼ï¼çµäºã¿ã°ã¾ã§ãã¼ã¹å®äºãã¦ãªãï¼è¦ç´ ã®åï¼å«ï¼è¦ç´ ã¸ã®ãã¼ã追å ã»åé¤ã§ãã
- ä¾å¤ãããscriptè¦ç´ èªèº«ã®è¦ªè¦ç´ ã¸ã®ãã¼ã追å ã親è¦ç´ èªèº«ã®åé¤ã®ã¨ãã¯ã"Operation Aborted"ãåºãªã
//operation abortedãåºãhtmlã½ã¼ã¹ä¾ //bodyè¦ç´ ã®åè¦ç´ ã¨ãã¦ã®æ¿å ¥ //divè¦ç´ ã¸ã®æ¿å ¥ãªãoperation abortedã¯åºãªã <html> <body> <div> <script type="text/javascript"> var newElem = document.createElement('foo'); document.body.appendChild(newElem); </script> </div> </body> </html>
- iframeè¦ç´ ã®ä¸ã§ã"Operation Aborted"ãçºçããã¨ãã¢ã¼ãã«ã®ãã¤ã¢ãã°ã表示ãã表示å 容ãç ´æ£ããã
- jsã使ã£ãiframeè¦ç´ ã®ã"Operation Aborted"ãåºãããå ´æã®ï¼ã¤ã«ãªã£ã¦ã
- IE8beta1ã§éçºãã¼ã ããã£ããã¨ã¯
- "Operation Aborted"ãã¤ã¢ãã°ã¯ã¢ã¼ãã«ã§ããã¤è¡¨ç¤ºï¼é表示ãè¨å®ã§é¸ã¹ãªã
- åã«"Operation Aborted"ãã¤ã¢ãã°ãé表示ããã ãã ã¨ã¨ã©ã¼çºçãã¦ããã¼ã¸ã¸ã¦ã¼ã¶ã®è¨ªåã許ãã¦ãã¾ãã
- IE8ã§ã¯ãhtmlãã¼ãµã¼ã¯ï¼åã«ã¨ã©ã¼éç¥ããã®ã§ãªãï¼"Operation Aborted"ã¨ããä¾å¤ãæããã¨ããããªã
- ä¾å¤çºçãããã¨ãã¹ã¯ãªããã¨ã©ã¼ã表示ãããå ´æã§ç¢ºèªã§ããããã«ãã
- ä¾å¤çºçæç¹ã§ãã¼ã¹å¦çã¨ã¹ã¯ãªããå®è¡ãåæ¢ããã
- ãããã°ã«å½¹ç«ã¤æ å ±ãã¨ã©ã¼è¡¨ç¤ºã«è¿½å ãKBè¨äºçªå·ã追å
//ä¾å¤çºçæã®ã¡ãã»ã¼ã¸ä¾ //æ«å°¾ã«KBè¨äºçªå· HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)
- KBçªå·ä¾¿å©
- "KB..."ã§googleã¨ãã§æ¤ç´¢ããã¨å½¹ç«ã¤æ
å ±ãããè¦ã¤ãã
- KBè¨äºçªå·ã«å¯¾å¿ããMSã®ãµãã¼ããã¼ã¸ã®è¨äºï¼Knowledge Base articleï¼ãè¦ã¤ããããã®ãã¼ã¸ã«ã¯è§£æ±ºæ³ãã®ã£ã¦ã
- Why do I receive an "Operation aborted" error message when I visit a Web page in Internet Explorer?
- "KB..."ã§googleã¨ãã§æ¤ç´¢ããã¨å½¹ç«ã¤æ
å ±ãããè¦ã¤ãã
- åãã©ã¦ã¶ããããããªç¶æ³ã§ãã¼ã¹å¦çãã©ããã£ã¦ãã®ãã追ã£ã¦ã¿ãã¨åãã©ã¦ã¶ã§è²ã
ã§é¢ç½ã
- ãªã³ã¶ãã©ã¤ã§ã®ãã¼ã追å ã¯ã©ã®ãã©ã¦ã¶ã§ã大ä½åã
- appendChild使ã£ãããããã¤
- åã«ãã¼ãã追å
- ã¡ã¢ãªä¸ã«ããDOMããªã¼ã¸ãã¼ãã追å ããã
- ãªã³ã¶ãã©ã¤ã§ã®ãã¼ãåé¤ããã¼ã¹å¦çã®åéããã®ç¹ã¯ãã©ã¦ã¶ã§å¯¾å¿ãéã£ã¦ãã
- removeChild, innerHTML, outerHTMLã¨ã使ããã¤
- ãã¼ã¹åéæã®ã³ã³ãã¯ã¹ããä½ã«ãããã§ãã©ã¦ã¶ã§éããåºã¦ãã
- ãã¼ã¹å®äºãã¦ããªããã¼ãã®åé¤
- 主æµã¯ä¸æ¬åé¤
- ã¨ã³ããªä½è ã¯ãã£ã¡ã®åä½ã«è³æ
- åé¤ããããã¼ãã®ãã¼ã¹ãå®äºï¼ï¼çµäºã¿ã°ã®ãã¼ã¹ã¾ã§å®äºï¼ããã¾ã§åé¤ãã¼ãã®åå«è¦ç´ ã®ãã¼ã¹ãã¹ããã
- åé¤ãã¼ãåè¦ç´ ã»å«è¦ç´ ã¯æ®ããDOMããªã¼ããåé¤ã
- well-formedãªãã¼ã¯ã¢ãããããªãï¼ï¼çµäºã¿ã°æãã®å¤ãï¼htmlã®å ´åã¨ãã¼ãµã¼å´ã®å¦çã大å¤ã«ãªã
- ã¹ã¯ãªããå®è¡ãããæç¹ã§ã®ãã¼ãå
¨ä½ãåé¤ãããã©ã¦ã¶ãå°æ°æ´¾ã ããã
- scriptè¦ç´ ãåï¼å«ï¼ãã¼ãã¨ãããã¼ãã®åé¤ãããã¨ãå®è¡æç¹ã§å¯¾è±¡ãã¼ãã¨ãã¼ã¹å®äºãã¦ãåå«ãã¼ãã ããåé¤
- scriptè¦ç´ ã®å¼è¦ç´ ãªã©ãããå ´åã¯ã¹ã¯ãªããå®è¡å¾ã«ãã¼ã¹ããDOMããªã¼ããåé¤ãããªã
- ãã¼ã¹ã¨ãã¼ãåé¤ã®çµæããã®å¼è¦ç´ ã¯ä¸ä¸ä»£ä¸ã®è¦ç´ ã¨ãã¦DOMããªã¼ã«è¿½å ããã
- ãªã³ã¶ãã©ã¤ã§ã®ãã¼ã追å ã¯ã©ã®ãã©ã¦ã¶ã§ã大ä½åã
//ãã¼ãåé¤ã§ãã©ã¦ã¶ã«ãã£ã¦çµæãå¤ããã±ã¼ã¹ //scriptè¦ç´ ã®è¦ªãã¼ããåé¤ã //scriptè¦ç´ ã®å å¼è¦ç´ ã¯æ®ããã親ãã¼ãã¨ä¸æ¬ãã¦åé¤ãããã //ã¨ã³ããªä½è ã¯ãä¸æ¬åé¤ãæ´¾ <html> <body> <div id="container1"> <div> <span id="span1">First block of text</span> <script type="text/javascript"> document.body.removeChild(document.getElementById('container1')); </script> <span id="span2">Second block of text</span> </div> </div> <div id="container2"></div> </body> </html> //ä¸æ¬åé¤ã ã¨ãbodyè¦ç´ ã®åå«è¦ç´ ã¯div#container2ã®ã¿ã //å¥è·¯ç·ã ã¨ãbodyè¦ç´ ã¯span#span2ã¨div#container2ã®å å¼è¦ç´ ï¼ã¤ãåè¦ç´ ã«ãã¤
- IE7以åã§ã¯ã©ãããï¼
- ãã¼ã¯ã¢ãããscriptè¦ç´ ã®ä½ç½®ãå 容ã調æ´ã§ããã¨ãã¯"Operation Aborted"ãåé¿ã§ãã
- èªç±ã«èª¿æ´ã§ããªãã¨ãããããåºåæ¿å ¥ãªã©
- åé¿æ¹æ³ã«ã¤ãã¦ã¾ã¨ããã
- åé¿æ¹æ³ã®ãã¤ã¸ã§ã¹ã
- scriptã®å®è¡ã¿ã¤ãã³ã°ãloadã¤ãã³ãçºç«å¾ãªã©ã«é ããã
- scriptè¦ç´ ã«deferå±æ§è¿½å ãã
- ãããããdeferå±æ§ä½¿ãã¨ããã¼ã¹å®äºã¾ã§scriptè¦ç´ å ã®ã³ã¼ãã®å®è¡é 延ãå¯è½
- DOMããªã¼ã®æä½ï¼ï¼è¦ç´ ã®è¿½å ã»åé¤ï¼ã®å¯¾è±¡ãscriptè¦ç´ ã®è¦ªè¦ç´ ã«éå®ãã
- scriptè¦ç´ ãbodyè¦ç´ ã®åè¦ç´ ã¨ãã¦ã®ã¿é ç½®ãã