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

Re: Why polyglot is needed

From: Michael[tm] Smith <mike@w3.org>
Date: Wed, 20 Mar 2013 04:56:57 +0900
To: "Henry S. Thompson" <ht@inf.ed.ac.uk>
Cc: www-tag@w3.org
Message-ID: <20130319195657.GM13611@sideshowbarker>
"Henry S. Thompson" <ht@inf.ed.ac.uk>, 2013-03-19 19:40 +0000:

> Michael[tm] Smith writes:
> > "Henry S. Thompson" <ht@inf.ed.ac.uk>, 2013-03-19 19:05 +0000:
> >>     <p><a name="test" />Inside or outside?</p>
> >
> > That's not valid per HTML5. The name attribute is not allowed on the <a>
> > element. There is now never any good reason to use it. You can just use an
> > id attribute on the p element to achieve the same effects.
> Yes, I do know that -- it was just the quickest way I could think of
> to illustrate the parsing point.  Take the name attribute off, and the
> example still misbehaves exactly as I said it would.

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.


Michael[tm] Smith http://people.w3.org/mike
Received on Tuesday, 19 March 2013 19:57:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:56:54 UTC