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

Re: Why polyglot is needed

From: T.V Raman <raman@google.com>
Date: Tue, 19 Mar 2013 16:44:25 -0700
Message-ID: <20808.63577.476908.858153@retriever.mtv.corp.google.com>
To: ht@inf.ed.ac.uk
Cc: mike@w3.org, www-tag@w3.org
A better example fo rHenry might be the following anchor tag:

<a href=/>Root</a>

What does the above do?

In one interpretation as per html5 parsing, that could be a
hyperlink to the root directory.

Henry S. Thompson writes:
 > Michael[tm] Smith writes:
 > 
 > > Sure, but then that <a> element is no longer serving any actual purpose in
 > > your document at all. So it's not a very compelling example of a real use
 > > case in need of polyglot markup.
 > 
 > The void element issue comes up all over the place.  I just checked a
 > small subset of the XHTML I have lying around, and 37 out of 100 had 
 >  <p></p>
 > 35 out of a (different) 100 had
 >  <p/>
 > 
 > I also found 56 instances of XHTML files with one or more of
 >  <title></title>
 >  <a></a>
 >  <td></td>
 >  <strong></strong>
 > alongside 25 instances of XHTML files with either or both of
 >  <td/>
 >  <title/>
 > so this is not a corner case.
 > 
 > ht
 > -- 
 >        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 23:44:56 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 19 March 2013 23:44:57 GMT