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
fix duplicate body tags #316
Comments
too much of a hassle with no clear solution. instead, just use a body tag! |
Stumbled upon this one too. It also happens when @jodeleeuw Are you still interested in working on this? I can offer my help in this case. Edit: core.init = function (options) {
function init() {
// ...
}
if (document.readyState === "complete") {
init();
} else {
window.addEventListener("load", init);
}
} This way, the tests pass as well. |
@jodeleeuw Are you willing to get this fixed? If so, I'm glad to do a PR. |
Yes! Sorry I dropped the ball on this. Getting this into 6.2 would be great. |
@bjoluc thanks very much for the fix, and sorry about the delay getting to this. You mentioned that you have some tests that cover this - do you have any written in Jest that could be added to jspsych/tests? If not then Josh or I can do it 👍 |
@becky-gilbert Thanks, I added two test cases for my change now ( |
jsPsych adds a to the DOM if one doesn't exist and the display_element is not set. But Chrome, and maybe other browsers, automatically adds a when the document finishes loading. This causes duplicate tags. Can we get Chrome to recognize that a tag has been added via the script?
The text was updated successfully, but these errors were encountered: