<!DOCTYPE html>
<html>
<style>
a { border: solid grey }
</style>
<title> Zero-width joiner U+200D </title>
<p> The following two lines should look the same
<h1><a> ﻌ </a></h1>
<h1><a> ع </a></h1>
<p dir=rtl> The following two lines should look the same
<h1 dir=rtl><a>
ﻌ1
</a></h1>
<h1 dir=rtl><a>
ع1
</a></h1>
</html>