Opened 15 years ago

Closed 15 years ago

#3789 closed Bug (fixed)

Duplicate "src" attribute in image input type element

Reported by: Wiktor Walc Owned by: Artur Formella
Priority: Normal Milestone: CKEditor 3.0
Component: General Version:
Keywords: Confirmed Review+ Cc:

Description

Create image button and you'll see:

<input alt="" src="http://a.cksource.com/a/1/gfx/logo_ck_editor.png" src="http://a.cksource.com/a/1/gfx/logo_ck_editor.png" type="image" />

(the "src" attribute is repeated).

Attachments (2)

3789.patch (646 bytes) - added by Artur Formella 15 years ago.
3789_2.patch (2.1 KB) - added by Artur Formella 15 years ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 15 years ago by Artur Formella

Owner: set to Artur Formella
Status: newassigned

Changed 15 years ago by Artur Formella

Attachment: 3789.patch added

comment:2 Changed 15 years ago by Artur Formella

Keywords: Confirmed Review? added

comment:3 Changed 15 years ago by Garry Yao

Keywords: Review- added; Review? removed

The 'name' and 'src' protecting logic is currently causing a lot of code DUP, adding a new rule for this purpose is preferred, e.g.

	var defaultHtmlAttirubteRules =
	{
		elements : {
			$ : function( element )
			{
				var attribs = element.attribs;
				if ( attribs && attribs._cke_saved_name )
					delete attribs.name;
				if ( attribs && attribs._cke_saved_href )
					delete attribs.href;
			}
		}
	};

Changed 15 years ago by Artur Formella

Attachment: 3789_2.patch added

comment:4 Changed 15 years ago by Artur Formella

Keywords: Review? added; Review- removed

comment:5 Changed 15 years ago by Garry Yao

Keywords: Review+ added; Review? removed

comment:6 Changed 15 years ago by Frederico Caldeira Knabben

Resolution: fixed
Status: assignedclosed

Fixed with [3778].

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy