Reasoning: http://zoompf.com/blog/2012/05/html5shiv-and-serving-content-from-code-r...

The instructions at Google code were recently updated as well, and no longer recommend linking to the Google code repository, especially since development is now happening in a GitHub repository. Not that we should be linking to the GitHub repository :)

Patch against 7.x-3.x-dev attached.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

star-szr’s picture

This is fixed in 7.x-4.x, so this is probably a won't fix for 7.x-3.x. Maintainers, what do you think?

Simon Georges’s picture

Status: Active » Needs review

4.x is still not the recommended version, so I suppose this should be fixed for users that are using the 3.x version (like production websites).
Are there issues when upgrading from 3.x to 4.x version?

Anyway, as there is a patch, changing status to needs review.

Status: Needs review » Needs work

The last submitted patch, omega-html5shiv-local.patch, failed testing.

gabyyy’s picture

Status: Needs work » Needs review

omega-html5shiv-local.patch queued for re-testing.

gabyyy’s picture

Issue summary: View changes

Updated issue summary.

mforbes’s picture

Issue summary: View changes

The patch uses path_to_theme() which is problematic. I've seen folks report certain issues where path_to_theme() returns the base theme when they expected it to return the active theme, but I'm actually experiencing the opposite problem: I subthemed Omega, and path_to_theme() in the context of html.tpl.php is the path to my subtheme. I do not include js/html5shiv.js in my subtheme, nor should I need to, so the resulting path is a 404 Not Found. The subtheming guide does not suggest unnecessarily duplicating assets from the base theme.

This bit of documentation clarifies why, in this particular context of html.tpl.php, path_to_theme() is returning my subtheme rather than Omega or Alpha: "When called outside the scope of a theming call, it will always point to the active theme." (https://api.drupal.org/api/drupal/includes%21theme.inc/function/path_to_...)

What do you think about swapping out path_to_theme() for drupal_get_path('theme', 'omega')? The path to html5shiv.js is always composed from the path to Omega, despite Omega both having a base theme and being a base theme for something else.

star-szr’s picture

FileSize
3.12 KB
4.96 KB

Yup, +1 that makes sense to hardcode that way @mforbes. Attaching a new patch and interdiff - I also grabbed the latest html5shiv.js via the Google code URL.

davidwatson’s picture

Looks solid. One more for RTBC?

alan-ps’s picture

Status: Needs review » Reviewed & tested by the community

#1 tested and works well!