This project is archived and is in readonly mode.

#53 ✓resolved
Thomas Aylott

Native Element Iframe: Extend Frames without a host

Reported by Thomas Aylott | May 28th, 2008 @ 10:05 AM | in 1.2.3

Originally posted on Trac by Texec

Original Trac Ticket

Description

The Iframe native should extend iframes without a host (e.g. important when creating a wysiwyg editor).

Diff

Index: Source/Element/Element.js
===================================================================
--- Source/Element/Element.js	(revision 1517)
+++ Source/Element/Element.js	(working copy)
@@ -82,7 +82,7 @@
 			var host = $try(function(){
 				return iframe.contentWindow.location.host;
 			});
-			if (host && host == window.location.host){
+			if (host && host == window.location.host || !host){
 				var win = new Window(iframe.contentWindow);
 				var doc = new Document(iframe.contentWindow.document);
 				$extend(win.Element.prototype, Element.Prototype);

Trac Attachments

Trac Comments

Comments and changes to this ticket

  • Sebastian Markbåge

    Sebastian Markbåge June 21st, 2009 @ 07:06 PM

    • Assigned user changed from “Valerio” to “Sebastian Markbåge”
    • Tag set to enhancement
    • State changed from “new” to “resolved”
    • Milestone changed from 2.0 to 1.2.3

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Referenced by

Pages