[kupu-checkins] r49344 - in kupu/trunk/kupu: common tests
duncan at codespeak.net
duncan at codespeak.net
Tue Dec 4 17:24:17 CET 2007
Author: duncan
Date: Tue Dec 4 17:24:14 2007
New Revision: 49344
Modified:
kupu/trunk/kupu/common/kupubasetools.js
kupu/trunk/kupu/tests/test_kupuhelpers.js
Log:
Fix typo and update test
Modified: kupu/trunk/kupu/common/kupubasetools.js
==============================================================================
--- kupu/trunk/kupu/common/kupubasetools.js (original)
+++ kupu/trunk/kupu/common/kupubasetools.js Tue Dec 4 17:24:14 2007
@@ -1251,7 +1251,7 @@
/* create an image */
var img = this.editor.getInnerDocument().createElement('img');
img.src = url;
- img.setAttribute('kupu-src') = url;
+ img.setAttribute('kupu-src', url);
img.removeAttribute('height');
img.removeAttribute('width');
if (alttext) {
Modified: kupu/trunk/kupu/tests/test_kupuhelpers.js
==============================================================================
--- kupu/trunk/kupu/tests/test_kupuhelpers.js (original)
+++ kupu/trunk/kupu/tests/test_kupuhelpers.js Tue Dec 4 17:24:14 2007
@@ -103,6 +103,7 @@
s = s.replace(/\/>/g, ">");
s = s.replace(' style=""', "");
s = s.replace(" style=''", "");
+ s = s.replace(/ kupu-src="[^"]*"/, "");
return s;
};
More information about the kupu-checkins
mailing list