diff -r 2f6f6f7551ca -r 32102edaa81b web/wp-includes/js/tinymce/utils/validate.js --- a/web/wp-includes/js/tinymce/utils/validate.js Thu Sep 16 15:45:36 2010 +0000 +++ b/web/wp-includes/js/tinymce/utils/validate.js Mon Nov 19 18:26:13 2012 +0100 @@ -1,10 +1,11 @@ /** - * $Id: validate.js 758 2008-03-30 13:53:29Z spocke $ + * validate.js * - * Various form validation methods. + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. * - * @author Moxiecode - * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing */ /** @@ -31,7 +32,7 @@ }, isSize : function(s) { - return this.test(s, '^[0-9]+(%|in|cm|mm|em|ex|pt|pc|px)?$'); + return this.test(s, '^[0-9.]+(%|in|cm|mm|em|ex|pt|pc|px)?$'); }, isId : function(s) { @@ -95,8 +96,10 @@ var i, nl, s = this.settings, c = 0; nl = this.tags(f, 'label'); - for (i=0; i