Skip to content
This repository has been archived by the owner on Mar 26, 2023. It is now read-only.

bing translator and non-well-formed html #75

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 24 comments
Open

bing translator and non-well-formed html #75

GoogleCodeExporter opened this issue Mar 14, 2015 · 24 comments

Comments

@GoogleCodeExporter
Copy link

Comment by mightysam, Nov 3:

We have been using the this jquery translation library with Google on our site 
for close to 2 years and it's working great. Recently we tried to switch to 
Bing and I can see the site start to fall part after switching between a few 
languages.

After some investigation, I believe the problem lies on Bing's requirement on 
sending well formatted HTML tags. 
http://msdn.microsoft.com/en-us/library/ff512406.aspx which may not be 
happening because jquery is breaking up the HTML.

For example, the jquery translation library may break up the site's HTML into 
the following before sending to Bing: </div><div>Text 1</div><div>Text 2</div>

Bing will return the following after translation, stripping out incomplete 
tags: <div>Text 1</div><div>Text 2</div>

When the library tries to put the results back to the original position, the 
website will be messed up with missing and misplaced tags. Any suggestion on 
how this can be fixed?

Original issue reported on code.google.com by balazs.endresz on 6 Nov 2011 at 4:02

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant