SuperX-Kernmodul
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

33 lines
891 B

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Dojo: Testing the scope of svg functions</title>
</head>
<body>
<iframe src="test_svgScope.svg" id="svgWindow">
</iframe>
<script type="text/javascript">
<!--
function scopeTest(svgDoc,svgDocTest) {
svgDoc = svgDoc;
if(svgDoc.test){
svgDoc.test("html");
}
if(window.frames[0].test){
window.frames[0].test("html (through frames reference)");
}
if(svgDocTest){
svgDocTest("html (reference passed though)");
}
test("html");
}
function test(sourceDocumentType){
alert("found html test function scope correctly from a(n) " + sourceDocumentType + " document");
}
// -->
</script>
</body>
</html>