<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><title>The dir attribute: numbers isolated from preceding text, same direction</title><linkrel='author'title='Richard Ishida'href='mailto:ishida@w3.org'><linkrel="help"href='http://www.w3.org/TR/html5/dom.html#requirements-relating-to-the-bidirectional-algorithm'><linkrel='match'href='reference/dir-isolation-004-ref.html'><metaname='assert'content='Numeric element content with a dir attribute is treated as a neutral character and directionally isolated from preceding text.'><styletype="text/css">.test,.ref{font-size:150%;border:1pxsolidorange;margin:10px;margin-right:200px;padding:5px;clear:both;}input{margin:5px;}</style></head><body><pclass="instructions"dir="ltr">Test passes if the two boxes are identical.</p><!--Notes:Key to entities used below:א ... ו - The first six Hebrew letters (strongly RTL).‭ - The LRO (left-to-right-override) formatting character.‬ - The PDF (pop directional formatting) formatting character; closes LRO.The punctuation is moved around in the source to make it easier to do visual comparisons when the test is run.--><divclass="test"><divdir="ltr">א<spandir="ltr">3</span></div><divdir="ltr">a <spandir="ltr">3</span></div><divdir="rtl">א<spandir="rtl">3</span></div><divdir="rtl">a <spandir="rtl">3</span></div></div><divclass="ref"><divdir="ltr">‭א 3‬</div><divdir="ltr">‭a 3‬</div><divdir="rtl">‭3 א‬</div><divdir="rtl">‭3 a‬</div></div></body></html>