camicroscope / caMicroscope

Digital pathology image viewer with support for human/machine generated annotations and markups.
BSD 3-Clause "New" or "Revised" License
249 stars 289 forks source link

Removed unnecessary attrubutes #916

Closed gbengaoluwadahunsi closed 6 months ago

gbengaoluwadahunsi commented 6 months ago

Summary The type="text/javascript" attribute has been removed from the script tags in the HTML code. This change aligns with the recommendation from the W3C, which states that the type attribute is unnecessary for JavaScript resources By removing this attribute, the HTML code becomes cleaner and more compliant with modern web standards.

Motivation The motivation behind removing the type="text/javascript" attribute is to adhere to current best practices and recommendations set forth by the W3C. This change ensures that the HTML code is more concise, easier to maintain, and aligns with industry standards for web development.

According to the W3C recommendation, the type="text/javascript" attribute is not necessary for JavaScript resources in HTML documents. Thus, removing this attribute from script tags aligns with modern web standards and helps improve code readability and compliance.

Testing The removal of the type="text/javascript" attribute has been tested to ensure that it does not impact the functionality of the scripts. Additionally, the HTML code has been validated using the W3C HTML validator to confirm compliance with standards.