Resource injector, HTML5, head/header tags

Issue #93 resolved
created an issue

The resource injector will inject resources into <head> and <header> tags. This is causing issues with HTML5.

Issue at tw2/core/ Regex will match both <head> and <header> tags causing resources to be injected incorrectly into the DOM.

Comments (3)

  1. Greg reporter

    Attached a patch that will alleviate the issue. It changes the regex to look for 'head' but not 'header'.

    Tested with the internal tests and with a TG2 quickstart with an HTML5 BoilerPlate template.

  2. Log in to comment