W3C home > Mailing lists > Public > www-tag@w3.org > March 2013

Re: Why polyglot is needed

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Tue, 19 Mar 2013 19:13:18 +0000
To: www-tag@w3.org
Message-ID: <f5bwqt3p5ip.fsf@calexico.inf.ed.ac.uk>
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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 19 March 2013 19:13:41 GMT