I have an element into which I set a string of HTML using $w(element).html = HtmlString.
Got a problem with that though - Sometimes it loads shifted.
I will provide a simplified code with example -
I have a string of HTML links with their labels.
<a href="/translation_afrikaans_english">Afrikaans</a> <a href="/translation_albanian_english">Albanian</a> <a href="/translation_arabic_english">Arabic</a>
and I assign them into a .html on the element.
$w("#footerLinks").html = htmlLinks
Then on the page it looks like this:
BUT! Sometimes (and those cases are quite often) it happens so that when you click on for example Afrikaans, there is no link, but Albanian links to Afrikaans and Aramaic links to Albanian (simply put they are shifted by 1 index)
So the code on the client website actually looks like this:
<a href="">Afrikaans</a> <a href="/translation_afrikaans_english">Albanian</a> <a href="/translation_albanian_english">Arabic</a>
The shifting can happen in the opposite direction as well. Or it sometimes happened that the links were shifted by 2 indexes.
This is a simple .html SET. And therefore there is nothing that can be doing this on my side. The WixCode processes the .html and returns it in their "edited format" apparently. And there is a bug which shifts the indexes while this assign is happening.
This is a big problem for us, please fix this issue Wix. I already reported the bug using the report issue form, but there is no response or anything from Wix developers. I hope someone will see and care about this problem. Thanks for whoever that is. If there is...