woocommerce / FlexSlider

An awesome, fully responsive jQuery slider plugin
http://www.woocommerce.com/flexslider/
GNU General Public License v2.0
4.92k stars 1.69k forks source link

Demo .html files do not specify character encoding correctly #1759

Closed siliconforks closed 1 month ago

siliconforks commented 5 years ago

The demo .html files (e.g., https://github.com/woocommerce/FlexSlider/blob/master/demo/index.html) contain the following meta tag for declaring the document character encoding:

<meta content="charset=utf-8">

The tag should look either like this (the modern HTML5 version):

<meta charset="utf-8">

... or this (older, but still works):

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

The <meta content="charset=utf-8"> tag seems to have similarities to both the old and new versions, but it doesn't actually appear to work in browsers. (In Firefox, for example, viewing the document gives the warning "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.")

Reference: https://www.w3.org/International/questions/qa-html-encoding-declarations