Sharethis W3C error validation

sharethis memudahkan pengguna untuk mendistribusi konten website, blog, artikel berita. sharethis memungkinkan untuk distribusi ke Twitter, facebook, yahoo, Google, Email maupun service lainnya.

bagi anda pemakai plugin Sharethis.com mungkin anda tidak menyadari code tersebut terdapat error pada aturan W3C yang mempunyai pesan error validation

  • there is no attribute “st_title”
  • there is no attribute “st_url”
  • there is no attribute “displayText”

Validation Output: 3 Errors

  1.  Line 376, Column 44: there is no attribute “st_title”

    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the “Strict” document type with a document that uses frames (e.g. you must use the “Transitional” document type to get the “target” attribute), or by using vendor proprietary extensions such as “marginheight” (this is usually fixed by using CSS to achieve the desired effect instead).

    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

  2.  Line 376, Column 106: there is no attribute “st_url”

    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the “Strict” document type with a document that uses frames (e.g. you must use the “Transitional” document type to get the “target” attribute), or by using vendor proprietary extensions such as “marginheight” (this is usually fixed by using CSS to achieve the desired effect instead).

    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

  3.  Line 376, Column 134: there is no attribute “displayText”

    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the “Strict” document type with a document that uses frames (e.g. you must use the “Transitional” document type to get the “target” attribute), or by using vendor proprietary extensions such as “marginheight” (this is usually fixed by using CSS to achieve the desired effect instead).

    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

untuk pengecekan error validation bisa dilakukan di
http://validator.w3.org/check?uri=http://<website yang memakai sharethis>

tanggapan mengenai W3c Error Validation oleh pengguna lain yang memakai sharethis
http://forums.sharethis.com/topic.php?id=3183

:( sayangnya masih belom ada rencana kapan akan dikeluarin sharethis terbaru yang sudah mengikuti aturan W3C
http://forums.sharethis.com/topic.php?id=5547

untuk mengatasinya maka pergunakan code dibawah ini

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<script type="text/javascript">// <![CDATA[
  var twitter = "<span class='st_twitter' displayText='Tweet'></span>";
  var facebook = "<span class='st_facebook' displayText='Facebook'></span>";
  var linkedin = "<span class='st_linkedin' displayText='LinkedIn'></span>";
  var yahoo = "<span class='st_yahoo' displayText='Yahoo!'></span>";
  var googlebuzz = "<span class='st_gbuzz' displayText='Google Buzz'></span>";
  var email = "<span class='st_email' displayText='Email'></span>";
  var sharethis = "<span class='st_sharethis' displayText='ShareThis'></span>";
  document.write('
 
' + twitter + facebook + linkedin + yahoo + googlebuzz + email + sharethis + '
 
');
// ]]></script>

maka w3c validation pada sharethis akan menjadi valid :D


Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">