-
Notifications
You must be signed in to change notification settings - Fork 59
Extra body tags in the rendered html. #8
Comments
I fixed this issue in my fork: https://github.com/ClemMakesApps/winstore-jscompat |
I think a pull request would be great. Can you also sign the Contributor's License Agreement (CLA) for the project here - https://cla.msopentech.com/ ? |
Sure. I'll definitely do that. My company is busy during the holidays, so I probably won't be able to submit a pull request till January. |
Thanks for fixing this. I was going crazy trying to find out where the extra body tags were coming from. This was screwing up any component JS that was referencing document.body as it was pointing to the extra (empty) body tag. I'm looking forward to seeing this PR get into the master source. |
The fix works for the specified problem. |
Looks like it works for elements that get injected under the body, but it doesn't work when elements are dynamically injected into the HEAD of the page. For example, when using this with angular, the default style block that angular attempts to injects into the head of the page does not work. I've created a pull request that fixed it for my case. Take a look and let me know if it looks good. |
@Fishes - Looks like there is a problem in AppBar specifically: winjs/winjs#899 @wbreza - How would that work if you are calling innerHTML on a documentElement? Your code will always strip out |
@xirzec - I haven't tested that case. I'll update again when I have some time to test it out. |
@wbreza Thanks for the pointer. Yep, they're inserting a |
When a directive is added the added html tags are surrounded in an extra body tag. And preceded by an extra head tag.
The text was updated successfully, but these errors were encountered: