Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move paper-wormhole div out of head tag. #311

Merged

Conversation

blimmer
Copy link
Contributor

@blimmer blimmer commented Mar 15, 2016

The paper-wormhole div is currently insterted into the <head> of the index.html page,
which causes DOM parsing problems for browsers. The div element cannot appear in the
<head>, and causes Chrome to move the <body> tag up to enclose the first <div>, breaking
all subsequent <head> tags (favicons meta, etc.)

This change places the tag as the first element in the <body> tag, which should
be equivalent for Paper.

@blimmer
Copy link
Contributor Author

blimmer commented Mar 15, 2016

This can definitely cause some really strange bugs (which is how I found this bug in the first place), so I think this warrants a bugfix release.

@miguelcobain
Copy link
Collaborator

I don't know how this ended up like that this far.
Do you mind adding a change log entry under master?

The `paper-wormhole` div is currently insterted into the `<head>` of the index.html page,
which causes DOM parsing problems for browsers. The `div` element cannot appear in the
`<head>`, and causes Chrome to move the `<body>` tag up to enclose the first `<div>`, breaking
all subsequent `<head>` tags (favicons, etc.)

This change places the tag as the first element in the `<body>` tag, which should
be equivalent for Paper.
@blimmer blimmer force-pushed the bug/div-in-head-tag branch from 498e524 to 72c98c0 Compare March 15, 2016 21:41
@blimmer
Copy link
Contributor Author

blimmer commented Mar 15, 2016

Updated changelog and amended commit.

@miguelcobain
Copy link
Collaborator

Thanks!

miguelcobain added a commit that referenced this pull request Mar 15, 2016
Move `paper-wormhole` div out of head tag.
@miguelcobain miguelcobain merged commit d7e7198 into adopted-ember-addons:master Mar 15, 2016
@miguelcobain
Copy link
Collaborator

Published 0.2.12

@blimmer
Copy link
Contributor Author

blimmer commented Mar 15, 2016

Thanks for handling this so quickly!

@blimmer blimmer deleted the bug/div-in-head-tag branch March 15, 2016 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants