I have a html document that contains hebrew and latin text. It is encoded with utf-8:
<!DOCTYPE HTML>
<html>
<head>
<title>Title</title>
<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
</head>
<style type='text/css'>
.h { color: green}
</style>
<body>
<div>
here are some words הנה כמה מילות (100, 200)
</div>
<div>
here are some words <span class='h'>הנה כמה מילות</span> (100, 200)
</div>
<div>
here are some words <span class='h'>הנה כמה מילות</span> <span>(100, 200)</span>
</div>
<div>
here are some words <span class='h'>הנה כמה מילות</span> <b>WORD</b> <span>(100, 200)</span>
</div>
</body>
</html>
The first three lines are not displayed as I think they should. The fourth (with the additional <b>WORD</b>
in front of the parantheses is.
Here's how this document is displayed in Firefox:
Edit Not even the copy/paste of my html text works correctly, so here's a screen shot of the original html (sorry, but it seems as though it's impossible to get this text rendered correctly):
style='direction:rtl;'
– Gav