[twitter-dev] Twitter Button and W3C Validator

2011-01-15 Thread Murray Smith
We're adding the Tweet Button to our test web page ( 
http://www.plentyofforestryjobs.com/00_fj_index.html ) and are receiving the 
following errors from the W3C Validator ( http://validator.w3.org ):

*Line 178, Column 82*: there is no attribute data-url 
*Line 178, Column 141*: there is no attribute data-text 
*Line 178, Column 206*: there is no attribute data-count 
*Line 178, Column 228*: there is no attribute data-via 

Our Twitter code is:
a href=http://twitter.com/share; class=twitter-share-button 
data-url=http://www.plentyofforestryjobs.com/index.html; data-text=Check 
out the new job at Plenty of Forestry Jobs™ ! data-count=horizontal 
data-via=PFJForestryJobsTweet/ascript type=text/javascript 
src=http://platform.twitter.com/widgets.js;/script

How do we resolve these errors?  Thanks in advance!

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


[twitter-dev] Twitter Button and W3C Validator

2011-01-12 Thread Fabricio Gomes
--- portuguese version
Estou utilizando o Tweet Button na minha pagina web e está causando os
seguintes erros no W3C Validator:

cannot generate system identifier for general entity v
general entity v not defined and no default entity
reference not terminated by REFC delimiter
reference to entity v for which no system identifier could be
generated
entity was defined here

tudo por causa da linha

…script src=http://platform.twitter.com/anywhere.js?
id=4MefUUvPXcQdIm30HhQv=1

utilizo o modelo através da url no link, no formato

a class='twitter-share-button' href='www.twitter.com/share?
url=minha_urlamp;text=meu_textoamp;count=horizontalamp;via=fabriciorgomes'Tweet/
a

O que eu posso fazer para validação no W3C?

Obrigado

--english version
I'm using Tweet Button on my web page and is causing the following
errors in the W3C Validator:

 can not generate system identifier for general entity v
 general entity v not defined and the default entity
 reference not terminated by delimiter REFCO
 reference to entity v Which is the system generated identifier
Could Be
 entity was defined here

 all because of the line

 ... script src = http://platform.twitter.com/anywhere.js?
id=4MefUUvPXcQdIm30HhQv=1

 i use the model with a url in link, like

 a class='twitter-share-button' href='www.twitter.com/share?
url=my_urltext=my_textcount=horizontalvia=fabriciorgomes'Tweet/
a

 What can I do to the W3C validation?

Thanks!


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk


Re: [twitter-dev] Twitter Button and W3C Validator

2011-01-12 Thread Matt Harris
When validating for XHTML you need to ensure the  in URLs is encoded as
amp;

In your case that would mean using:
http://platform.twitter.com/anywhere.js?id=4MefUUvPXcQdIm30HhQamp;v=1
and

http://www.twitter.com/share?url=minha_urlamp;text=meu_textoamp;count=horizontalamp;via=fabriciorgomes

Best,
@themattharris
Developer Advocate, Twitter
http://twitter.com/themattharris


On Wed, Jan 12, 2011 at 5:46 PM, Fabricio Gomes 
fabriciorodriguesgo...@gmail.com wrote:

 --- portuguese version
 Estou utilizando o Tweet Button na minha pagina web e está causando os
 seguintes erros no W3C Validator:

 cannot generate system identifier for general entity v
 general entity v not defined and no default entity
 reference not terminated by REFC delimiter
 reference to entity v for which no system identifier could be
 generated
 entity was defined here

 tudo por causa da linha

 …script src=http://platform.twitter.com/anywhere.js?
 id=4MefUUvPXcQdIm30HhQv=1

 utilizo o modelo através da url no link, no formato

 a class='twitter-share-button' href='www.twitter.com/share?

 url=minha_urlamp;text=meu_textoamp;count=horizontalamp;via=fabriciorgomes'Tweet/
 a

 O que eu posso fazer para validação no W3C?

 Obrigado

 --english version
 I'm using Tweet Button on my web page and is causing the following
 errors in the W3C Validator:

  can not generate system identifier for general entity v
  general entity v not defined and the default entity
  reference not terminated by delimiter REFCO
  reference to entity v Which is the system generated identifier
 Could Be
  entity was defined here

  all because of the line

  ... script src = http://platform.twitter.com/anywhere.js?
 id=4MefUUvPXcQdIm30HhQv=1

  i use the model with a url in link, like

  a class='twitter-share-button' href='www.twitter.com/share?
 url=my_urltext=my_textcount=horizontalvia=fabriciorgomes'Tweet/
 a

  What can I do to the W3C validation?

 Thanks!


 --
 Twitter developer documentation and resources: http://dev.twitter.com/doc
 API updates via Twitter: http://twitter.com/twitterapi
 Issues/Enhancements Tracker:
 http://code.google.com/p/twitter-api/issues/list
 Change your membership to this group:
 http://groups.google.com/group/twitter-development-talk


-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk