Code hosted on byethost.com fails to validate

I have found a rather pernicious problem - using the validator with html
code residing on the byethost hosting service always fails.

One of the requirements of the Web Design For Everyone courses from
Coursera and U Mich is to periodically run our code through the validator -
for this site, the code can be uploaded or a url can be given where the
code is hosted.  At this time, if I upload my code, it passes with no
errors.  However, submitting the bytehodt url results in the validator
returning a number of errors which at first glance make no sense ...

I was eventually able to find the cause - byethost is returning the code
snippet (below) which is resulting in the errors:

===

   1. <html><body><script type="text/javascript" src="/aes.js"
></script><script>function
   toNumbers(d){var
   e=[];d.replace(/(..)/g,function(d){e.push(parseInt(d,16))});return
   e}function toHex(){for(var
   d=[],d=1==arguments.length&&arguments[0].constructor==Array?arguments[0]:arguments,e="",f=0;f<d.length;f++)e+=(16>d[f]?"0":"")+d[f].toString(16);return
   e.toLowerCase()}var
   a=toNumbers("f655ba9d09a112d4968c63579db590b4"),b=toNumbers("98344c2eee86c3994890592585b49f80"),c=toNumbers("92045e4aa48a051f27127bb757b07f4f");document.cookie="__test="+toHex(slowAES.decrypt(c,2,a,b))+";
   expires=Thu, 31-Dec-37 23:55:55 GMT; path=/"; location.href="
   http://www.chez-moi.byethost9.com/bootstrap%204%20testing/carousel-test.html?i=1";</script><noscript>This
   site requires Javascript to work, please enable Javascript in your browser
   or use a browser with
   2. --Javascript support</noscript></body></html>

===
IMO this makes byethost an unsuitable option for use in this course (and
perhaps beyond).  The same issue seems to cause failures when using the
WAVE Web Accessibility Evaluation Tool from webaim - and there a submission
via a url is the only option.

Time-permitting, I will switch to a different hosting service, but I think
students should be aware of this issue.

Please advise on any other means to fix or get around this problem.

Thanks and Best Regards,

-- Steve Reagan


*-- Stephen Reagan*

*https://www.linkedin.com/in/stephen-reagan
<https://www.linkedin.com/in/stephen-reagan99>99*

Received on Friday, 4 June 2021 08:14:03 UTC