]> source.dussan.org Git - jquery.git/commitdiff
Adds widget as the list of local protocols.
authorjaubourg <j@ubourg.net>
Thu, 3 Feb 2011 17:23:02 +0000 (18:23 +0100)
committerjaubourg <j@ubourg.net>
Thu, 3 Feb 2011 17:23:02 +0000 (18:23 +0100)
src/ajax.js

index ce27d2de2ea2593a2ae0e1998cb3fdec2f5904d1..b361a2a735ca766b8fcd5c106972dbcb83e5d5c4 100644 (file)
@@ -7,7 +7,7 @@ var r20 = /%20/g,
        rheaders = /^(.*?):\s*(.*?)\r?$/mg, // IE leaves an \r character at EOL
        rinput = /^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
        // #7653, #8125, #8152: local protocol detection
-       rlocalProtocol = /(?:^file|\-extension):$/,
+       rlocalProtocol = /(?:^file|^widget|\-extension):$/,
        rnoContent = /^(?:GET|HEAD)$/,
        rprotocol = /^\/\//,
        rquery = /\?/,