This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
$http responseType: 'json' triggers DOM Exception 12 in Mobile Webkit #6115
Closed
Description
Hi folks,
I'm building a nice little drag & drop upload form for a contest and came across an interesting error.
In trying to perform a simple $http.get
call with some config passed, I've been getting DOM Exception 12 "SYNTAX ERROR" only in mobile phones with webkit-based browsers. Chrome does not seem to be affected.
Here's the actual code to reproduce (found in v1.2.6):
$http.get('/api/contest/submit.action', { params: $s.fields, responseType: 'json' }).then(function( response ){
$s.submitted = true;
});
Has anyone else run into this? The DOM error points to the line in $http's source where it sets the xhr.responseType property.