[whatwg] [html5] 2.6. Phrase elements

Anne van Kesteren fora at annevankesteren.nl
Thu Apr 14 07:22:40 PDT 2005


Ian Hickson wrote:
>> a[type=application/pdf]::after{ content:" " url(pdf-icon) }
> 
> That's an example of CSS, not of HTML. But yes, I'm all for more 
> examples in general. Send them in, the best ones will get added to 
> the spec! :-)

True. However, it does show a use case for the attribute.

You could also say something like: "A visual UA might display |<a
href="foo" type="application/pdf">| as: [example rendering]" .... where
[example rendering] is an image of a link with a PDF icon after it.


-- 
  Anne van Kesteren
  <http://annevankesteren.nl/>




More information about the whatwg mailing list