define([
	'config/svg',
	'config/namespaces'
], function (
	svg,
	namespaces
) {

	'use strict';

	// Test for SVG support
	if ( !svg ) {
		return function ( type, ns ) {
			if ( ns && ns !== namespaces.html ) {
				throw 'This browser does not support namespaces other than http://www.w3.org/1999/xhtml. The most likely cause of this error is that you\'re trying to render SVG in an older browser. See http://docs.ractivejs.org/latest/svg-and-older-browsers for more information';
			}

			return document.createElement( type );
		};
	} else {
		return function ( type, ns ) {
			if ( !ns ) {
				return document.createElement( type );
			}

			return document.createElementNS( ns, type );
		};
	}

});

@@ -583,16 +583,42 @@
 f ( !ns 
+%7C%7C ns === namespaces.html 
 ) %7B%0A%09%09%09%09

use document.createElement instead of document.createElementNS if possible, to avoid casing weirdness (#549)