The Following 5 Users Say Thank You to jonwil For This Useful Post: | ||
![]() |
2015-12-19
, 10:15
|
Posts: 567 |
Thanked: 2,966 times |
Joined on Oct 2009
|
#2
|
The Following 6 Users Say Thank You to jonwil For This Useful Post: | ||
![]() |
2015-12-26
, 03:15
|
Posts: 14 |
Thanked: 69 times |
Joined on Jan 2015
@ New Zealand
|
#3
|
The Following 9 Users Say Thank You to Maxdamantus For This Useful Post: | ||
![]() |
2015-12-26
, 09:20
|
Posts: 1,203 |
Thanked: 3,027 times |
Joined on Dec 2010
|
#4
|
![]() |
2015-12-26
, 10:16
|
Posts: 567 |
Thanked: 2,966 times |
Joined on Oct 2009
|
#5
|
![]() |
2015-12-30
, 07:33
|
|
Posts: 435 |
Thanked: 684 times |
Joined on Apr 2012
@ Netherlands 020
|
#6
|
![]() |
2016-01-04
, 20:02
|
Posts: 567 |
Thanked: 2,966 times |
Joined on Oct 2009
|
#7
|
![]() |
2016-01-27
, 05:25
|
Posts: 567 |
Thanked: 2,966 times |
Joined on Oct 2009
|
#8
|
The Following 3 Users Say Thank You to jonwil For This Useful Post: | ||
![]() |
2016-02-09
, 10:42
|
Posts: 567 |
Thanked: 2,966 times |
Joined on Oct 2009
|
#9
|
More specifically, if there is an & sign in the name of an entry under "places", it is not correctly being converted into & as required by the XHTML specification.
For reference https://drive.google.com/file/d/0B9i...ew?usp=sharing is the exact HTML Google serves up for one of the search queries I am using to test (including the broken & symbol) and I can confirm that both microb and a modern gecko based browser choke on this file with the exact same parsing error. (if you look at the raw XHTML source you can clearly see the string George's Fish & Chips instead of George's Fish & Chips like it should be).
A normal search on all the desktop browsers I have installed shows that the correct & is present there.
As Google Searches on the go (e.g. to find local examples of a certain type of business when I am out and about) is one of the major reasons I love my Nokia N900, I would like to find a solution to this problem.
Installing another browser isn't an option (especially since this will affect anyone using a N900 with MicroB and not just me)
Options:
1.Get Google to fix the output they return so the & symbol is properly converted to &. Likely to be difficult (finding a way to report it to Google, getting them to care about a browser and platform this old then getting them to actually be willing to fix the issue as)
2.Add something to microb-engine (in cssu or via some sort of add-on or other change) that detects the bogus Google pages and properly converts the &s into & before the page is rendered. Would probably be hard to do without deep level knowledge of the Gecko rendering engine internals (and not just the Gecko internals but the internals of the very old fork of Gecko we are using on the N900)
or 3.Modify libexpat (in microb-engine) so it treats an & followed by a space character as valid instead of returning a parsing error. This is the easiest way to go but I dont know if it will cause any failures elsewhere (although I doubt it would)
I am currently running a 3-line patch (attached to this post) that implements option 3 and so far (based on limited testing) it solves the Google Search issue (the test xhtml file above loads fine) and no side-effects have been observed.
So what I am looking for is feedback on where to go from here?
Is there a way to get Google to fix its output?
Is my 3-line patch the best solution?
Is there another way to solve this?