---
title: "$('BODY',WINDOW.FRAMES[0].DOCUMENT).APPEND($TESTSHOW) BUG"
author: "deejay"
date: "2012-09-24T11:41:30Z"
tags: []
categories: ["Web前端"]
slug: "body-window-frames-0-document-append-testshow-bug"
draft: false
lastmod: "2012-09-24T11:41:30Z"
id: 1684230
url: "https://deejay.iteye.com/blog/1684230"
---

$('BODY',WINDOW.FRAMES.DOCUMENT).APPEND($TESTSHOW) BUG

Reported by:	anonymous	Owned by:	
Priority:	undecided	 Milestone:	None
Component:	unfiled	 Version:	1.8.2
Keywords:		 Cc:	
Blocking:		 Blocked by:	
Description 


<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!-- the same bug at jquery-1.6.3.min.js --> <!-- <script src="jquery-1.6.3.min.js" type="text/javascript" ></script> --> <script src="jquery-1.8.2.min.js" type="text/javascript" ></script> <script type="text/javascript"> $(function(){

var $testShow =$('<span>append jquery object</span>'); var testString ='<span>append String</span>'; $('body',window.frames.document).append(testString); try{

$('body',window.frames.document).append($testShow);

}catch(e){

alert(e.message); 参数无效

}

}); </script>

</head> <body> <iframe src=""></iframe> </body> </html>