We should consider a series of fallbacks for this internal API.

The metadata story for things like icon, title, description, hero images, is 
complicated. Implementation in the follows real-world use cases like posting 
rich snippets to Facebook or getting an image to show up on Twitter, rather 
than some standard. 

I think it would be best to think of this kind of API as a sort of light 
"scraper" that crawls through a collection of known in-the-wild patterns to 
provide a good-enough answer.

---

Gordon Brander
Sr Design Strategist
Mozilla

> On May 30, 2015, at 13:09, Jonas Sicking <jo...@sicking.cc> wrote:
> 
> We should use whatever formats people are using to mark up pages. If that
> is microdata we should use that. If it's RDF we should use that. If its
> JSONLD we should use that.
> 
> The API that is used to extract the data is irrelevant. That will be an
> internal API anyway. Effectively we should think of the browser api as an
> internal api. There is no way it will be standardized in any relevant
> timeframe.
> 
> / Jonas
>> On May 29, 2015 16:57, "Anne van Kesteren" <ann...@annevk.nl> wrote:
>> 
>> On Fri, May 29, 2015 at 2:55 AM, Benjamin Francis <bfran...@mozilla.com>
>> wrote:
>>> Actually what might make more sense is a getLinkedData() method on the
>> API
>>> which returns a Promise that resolves with the JSON data, as I think
>> we're
>>> also going to need a getManifest() method which could work in a similar
>> way.
>> 
>> We've bitten ourselves before going down the RDF rathole (see
>> extensions et al). Not sure we should so rapidly start again. Why
>> can't you use the Microdata API?
>> 
>> 
>> --
>> https://annevankesteren.nl/
>> _______________________________________________
>> dev-webapi mailing list
>> dev-web...@lists.mozilla.org
>> https://lists.mozilla.org/listinfo/dev-webapi
> _______________________________________________
> dev-webapi mailing list
> dev-web...@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-webapi
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to