﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
13092	getAttribute() inside an attachedListener function() returns 'null'	Heinz		"
{{{
var buttonElement = '<input  type=""button""  value=""click me""  data-test=""test attribute""></input>';
var linkElement = CKEDITOR.dom.element.createFromHtml(buttonElement, editor.document);
editor.insertElement(linkElement);

// attach listener to capture clicks
editor.editable().attachListener( linkElement, 'click', function() {
                            var attribute = linkElement.getAttribute('data-test');
                            ...
                            console.log('attribute = ',attribute);
                }

}}}

In the plugin code sample above a listener is attached (as recommended by Reinmar) to an 'input' element to capture mouseclicks. To transport data a customer attribute is implemented. While the anonymos function is called perfectly, the 'attribute = linkElement.getAttribute('data-test');' returns 'null'."	Bug	closed	Normal		General		invalid		
