Steps to Reproduce Behavior
- Copy the following code into a file named Test.htm:
<HTML xmlns:ie>
<?import namespace=ie implementation=test.htc>
<BODY>
<ie:abc>Original</ie:abc>
</BODY>
</HTML>
- Copy the following code into a file named Test.htc:
<public:component tagName=abc>
<public:attach event="oncontentready" onevent=Doc_Ready() />
<SCRIPT>
function Doc_Ready() {
defaults.viewLink = document;
alert(document.frames.ifrm1.name);
}
</SCRIPT>
<IFRAME name="ifrm1" SRC="blank.htm"></IFRAME></IFRAME>
</PUBLIC:COMPONENT>
- Create a file named Iframe.htm with the following HTML:
<HTML>
<BODY>
<DIV>
Text contained within an IFRAME.
</DIV>
</BODY>
</HTML>
- Run Test.htm within Internet Explorer 5.5.
Note that if you replace this line in Test.htc
alert(document.frames.ifrm1.name);
with this line
alert(document.all.ifrm1.name);
the behavior will work as expected.