The e-junkie Add-to-Cart button code includes this: <script language="javascript" type="text/javascript"> but HTML 5 does not permit the attribute "language" in the <script> tag. The button still seems to function normally when I remove the language="javascript" attribute (that is, it seems to be working in the browsers I use to check code), but I'm wondering what, where (and if) I'm going to get bit removing this attribute?

  • created

    Feb '12
  • last reply

    Feb '12
  • 1

    reply

  • 1.2k

    views

  • 2

    users

You can just delete the language="javascript" attribute; we included it for historical reasons to support some older browsers that only recognize language= instead of the newer type= attribute. However, even without the language="javascript" attribute, those browsers will typically assume javascript is the default language for any scripts in the page, as long as you don't use a META tag in the head that specifies a different default scripting language for the page.