Re: Why polyglot is needed

I should of course have gone on to point to [1], which differs from
[2] _only_ in one line:

[2]    <p><a name="test" />Inside or outside?</p>
[1]    <p><a name="test"></a>Inside or outside?</p>

in accordance with what Polyglot observes about void elements [3].  It
validates and displays correctly when served as text/html.

ht

[1] http://www.ltg.ed.ac.uk/~ht/empty_test.html 
[2] http://www.ltg.ed.ac.uk/~ht/void_test.html
[3] http://www.w3.org/TR/html-polyglot/#empty-elements
-- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

Received on Tuesday, 19 March 2013 19:13:41 UTC