Re: Why polyglot is needed

"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.

  --Mike

-- 
Michael[tm] Smith http://people.w3.org/mike

Received on Tuesday, 19 March 2013 19:57:04 UTC