I use the Gmail Mobile site (not the smartphone version, but the old, lightweight, feature-phone-compatible one) on my desktop Firefox browser, via the set of URLs starting with https://mail.google.com/mail/u/0/x/. Recently (about 4-5 days ago), the email search page (which I had bookmarked as https://mail.google.com/mail/u/0/x/18ffn87o67mlt-/?&v=srch) began giving me this error:
XML Parsing Error: not well-formed
Location: https://mail.google.com/mail/u/0/x/1p6790md7rs8l-/?&v=srch
Line Number 6, Column 38:
for(i=0;i<searchButtonElements.length;i++)searchButtonElements[i].onclick=function(event){var urlParams={"s":"q","q":document.getElementById("sbq").value};urlParams[event.target.getAttribute("name")]=event.target.getAttribute("value");var encodedParams=[];for(var param in urlParams)encodedParams.push(encodeURIComponent(param)+"\x3d"+encodeURIComponent(urlParams[param]));document.getElementById("sbf").setAttribute("action","?"+encodedParams.join("\x26"))};
-------------------------------------^
If I check the source of the error page, the actual source of the Gmail Search page is shown.
I did not make any changes on my local Firefox installation/extensions/scripts. The error just came up suddenly.
Other pages of the same Gmail Mobile site are working fine. If I try to access the Search feature from any of those pages, I get the same error page as outlined above.
My question is, is there a way for configuring the Firefox XML parser (without rebuilding it from source :) ) in order to make it ignore the said error? (The error occurs inside a JavaScript fragment (surrounded by <script>...</script> tags), so in my opinion the XML parser should not even bother about it.)
Or else, is there a way to intercept the browser's resource loading process so that I can write a custom handler to modify (fix) the raw content of the page before it gets parsed by the parser?
Thanks in advance.