#49016 closed defect (bug) (wontfix)
Coding Standards: Twenty Seventeen Theme - Use strict comparison in assets/js/html5.js
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.7 |
Component: | Bundled Theme | Keywords: | has-patch |
Focuses: | javascript, coding-standards | Cc: |
Description
Twenty Seventeen Theme - Two types of bugs found
Strict comparison needed in conditions
Strings must use a single quote.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Hi @ankitmaru,
Thanks for this ticket!
The
html5.js
file is an external JavaScript file packaged with the theme for maximum HTML5 compatibility in older browsers. This file is intentionally copied verbatim to make updating it easier (changes made in Core won't get overwritten when copying over a new version of the library).The version of the shiv included in the Twenty Seventeen is the most recent version (which has not seen any commit activity since 2017). The browsers and versions it aims to support (IE 6-9, Safari 4.x, iPhone 3.x and Firefox 3.x) are used by very few, and that's likely the reason why it has not been updated in some time. WordPress also no longer supports IE < 11.
For these reasons, I am going to close this out. Any changes that you feel should be made should be reported upstream to the shiv's GitHub and can be copied over if an updated version of the shiv is released. But, that task would be the lowest priority IMO.