Opened 11 years ago

Closed 11 years ago

#6896 closed defect (wontfix)

dijit._editor.getChildrenHtml() does not work on IE.

Reported by: guest Owned by: liucougar
Priority: high Milestone: future
Component: Editor Version: 1.1.1
Keywords: Cc: sangpire@…
Blocked By: Blocking:

Description

dojo.version: 1.1.1 (13707) major=1 minor=1 patch=1 revision=13707 Browser: IE 7.0.5730.11

dijit._editor.getChildrenHtml seems not working on IE as I expected.

dijit._editor.getChildrenHtml = function(/* DomNode */dom){
	// summary: Returns the html content of a DomNode and children
	
	console.log('Input:',dom.innerHTML);
	
	var out = "";
	if(!dom){ return out; }
	var nodes = dom["childNodes"]||dom;
	var i=0;
	var node;
	while((node=nodes[i++])){
		out += dijit._editor.getNodeHtml(node);
	}
	
	console.log('Output:',out);
	return out; // String
}

Followings are my result:

Case 1. Lost EMBED tag.

Input: <PARAM NAME="movie" VALUE="http://www.youtube.com/v/61itwkWp5q4"><PARAM NAME="wmode" VALUE="transparent"> <embed src="http://www.youtube.com/v/61itwkWp5q4" type="application/x-shockwave-flash" wmode="transparent" width="320" height="269" />

Output: <param name="movie" value="http://www.youtube.com/v/61itwkWp5q4" /><param name="wmode" value="transparent" />

Case2. Lost TYPE attribute's value

Input:<EMBED src=http://www.youtube.com/v/61itwkWp5q4 width=320 height=269 type=application/x-shockwave-flash wmode="transparent"></EMBED>

Output:<embed height="269" src="http://www.youtube.com/v/61itwkWp5q4" type="null" width="320" wmode="transparent" /></embed />

Change History (2)

comment:1 Changed 11 years ago by bill

Milestone: tbd

mark all (open) tickets w/blank milestones to be "tbd"; their milestones need to be set to a version number or to "future"

comment:2 Changed 11 years ago by bill

Milestone: tbdfuture
Resolution: wontfix
Status: newclosed

Does this relate to something in the Editor public API like getValue()?

In any case, we don't support editors with <embed> in them; not sure how that got into your Editor in the first place.

Tempted to close this as "wontfix" unless you can make a compelling argument.

Note: See TracTickets for help on using tickets.