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
An assignment to innerHTML fails in XHTML #1255
Comments
I forgot to say: you can find the buggy code here: https://github.com/qunitjs/qunit/blob/2.5.0/reporter/html.js#L352-L358 |
Further to my previous comment: I have verified that you can fix the bug by closing the UPDATE But when you do that, it seems that you uncover another bug. I get the following error message in the console:
|
Hi @phormio, thanks for the issue! Interesting! That said: Holy crap, we really should use template strings or something else to make that file more readable. 😆 |
You're welcome 😀.
Yes, it's valid syntax for HTML. Quoting https://html.spec.whatwg.org/multipage/syntax.html#start-tags:
|
Fixed via #1317. Will be in the next release. |
Tell us about your runtime:
script
tag. RequireJS is then configured with the location of QUnit. Then a tiny test suite is run, which contains one call to QUnit.test.What are you trying to do?
Here is my XHTML page. It contains all you need to trigger the bug.
If you're not familiar with an AMD loader such as RequireJS, you can ignore the AMD mechanics by just concentrating on the
run_test_suite
function.What did you expect to happen?
I loaded the above page into my web browser, expecting that the page would contain a message from QUnit reporting a failing assertion.
What actually happened?
The page showed a number of things, including the text "Running..." and a button labelled "Abort". However, the outcome of the test was not shown.
In the console, the following message appeared:
The text was updated successfully, but these errors were encountered: