RenatoSousa89 / google-ajax-apis

Automatically exported from code.google.com/p/google-ajax-apis
0 stars 0 forks source link

AJAX Feed - html class attribute pruning #88

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Enhancement request.

I noticed that a lot of non-essential html formating data gets pruned
from a feeds content section through the API ( for cache storage
space, performance, security?). However looking into micro-formats
(www.microformats.org) they seem to rely heavily on the use of the
class attribute to distinguish the various items (on attr, span, div
etc)

Any chance the class attribute could be passed through to allow for
support of feed based micro-formats? Specifically it would open up
various extraction methods for information not currently not available
in the native feed. I've seen (and created) lots of hacks to get data
through and into the feed but I'd rather use a common (and potentially
supported in the future) format.

Of course I can get most of the data straight from a JSON source (without
the AJAX Feed API) but not everyone supports JSON and an RSS feed is all
the data I can get in some cases. I would rather use the API in all cases,
but the pruning makes it difficult or impossible to differentiate the
microformat fields.

Original issue reported on code.google.com by svbillab...@gmail.com on 13 Aug 2008 at 5:13

GoogleCodeExporter commented 8 years ago

Original comment by jrgeer...@gmail.com on 27 Aug 2008 at 12:58

GoogleCodeExporter commented 8 years ago

Original comment by jrgeer...@gmail.com on 27 Aug 2008 at 1:02

GoogleCodeExporter commented 8 years ago
Can you provide any examples of the pruning?

Thanks,
Ben

Original comment by lisba...@google.com on 28 Aug 2008 at 10:33

GoogleCodeExporter commented 8 years ago
The feed line <abbr class="geo" title="36.33;30.12">36.33 30.12</abbr>
prunes to <abbr title="36.33;30.12">36.33 30.12</abbr>, still identifiable 
however
the extended microformat

<span class='geo'>
<span class='latitude'>50.167958</span>; 
<span class='longitude'>-97.133185</span>
</span>

prunes to 

<span>
<span>50.167958</span>; 
<span>-97.133185</span>
</span>

making it impossible to determine which is lat and which is long..

see http://www.creative-cruising.com/SetImageBug/feedpruning.htm for an example 
that
reads the JSON for the feed and then the API version and spits them into 
textareas
for comparison.

Let me know if you need anything else

Chris

Original comment by svbillab...@gmail.com on 29 Aug 2008 at 4:55

GoogleCodeExporter commented 8 years ago
I guess I'm glad I didn't wait for this to get fixed!!

Original comment by svbillab...@gmail.com on 4 Sep 2009 at 2:24

GoogleCodeExporter commented 8 years ago
It also effects the ability to remove footers added by blogger or feedburner.

<div class="feedflare"> becomes <div> which blends in with the rest of the 
post!!

Original comment by svbillab...@gmail.com on 4 Jan 2010 at 1:22

GoogleCodeExporter commented 8 years ago
And makes it impossible to use the new Event microformat announced by Google 
TODAY..

http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=164506

Original comment by svbillab...@gmail.com on 22 Jan 2010 at 7:02

GoogleCodeExporter commented 8 years ago
Dewitt, Ben..

Until the feed API stops stripping class attributes, microformats and rich 
snippets CAN NOT be extracted from API feed content. The new PSHB enabled API 
sounds interesting but this basic lack of support requires me to use other 
hack-arounds.

Original comment by creative...@gmail.com on 9 Jun 2010 at 11:50

GoogleCodeExporter commented 8 years ago
nearing the two year "anniversary".

Original comment by svbillab...@gmail.com on 28 Jul 2010 at 3:09