📜 ⬆️ ⬇️

Little things in life - a valid code for Spaylog.

Maybe I, of course, “open America”, but maybe someone will come in handy ... When “polishing” the site I found out that the Spaylog counter does not pass validation on validator.w3.org . In principle, everything worked, but, as they say, a trifle, but unpleasant ... :)

Having carefully studied the counter code, I found that the developers still left the possibility of how to make it valid, albeit more heavy-looking. The source code looks like this:


<script src="http://tools.spylog.ru/counter_cv.js" id="spylog_code" type="text/javascript" counter="12345" part="" track_links="ext" page_level="0">

Spylog


')

Validation does not pass the script parameters passed through the attributes, apostrophes in the links and unclosed img. After editing, the following code is obtained, which validates:




Spylog


Source: https://habr.com/ru/post/19148/


All Articles