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

Use modern HTML5 <!DOCTYPE>, as discussed in #3299 #3937

Merged
merged 1 commit into from
Aug 24, 2017

Conversation

edemaine
Copy link
Contributor

Summary

As discussed in #3299, existing tests use an old-style HTML DOCTYPE, which makes it hard to test some modern web tools such as KaTeX; see KaTeX/KaTeX#664. This small tweak uses the recommended HTML5 DOCTYPE, which is probably a better default. Other issues such as #2460 could deal with the more general problem of making this configurable, but a reasonable default seems like a good start.

Test plan

We've tested over on the KaTeX side that it removes our warning about being in quirks mode. See KaTeX/KaTeX#747 (comment)

@facebook-github-bot
Copy link
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@cpojer
Copy link
Member

cpojer commented Jun 29, 2017

cc @aaronabramov can you test whether this breaks things at FB?

@facebook-github-bot
Copy link
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@codecov-io
Copy link

Codecov Report

Merging #3937 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3937   +/-   ##
=======================================
  Coverage   58.06%   58.06%           
=======================================
  Files         196      196           
  Lines        6758     6758           
  Branches        6        6           
=======================================
  Hits         3924     3924           
  Misses       2831     2831           
  Partials        3        3
Impacted Files Coverage Δ
packages/jest-environment-jsdom/src/index.js 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update eb9be5a...3a824e8. Read the comment docs.

@aaronabramov
Copy link
Contributor

i should be able to do it this week!

@aaronabramov
Copy link
Contributor

this doesn't seem to affect fb too much (3 failing tests, but i'm not sure if they're caused by this)

@cpojer cpojer merged commit fcf64d7 into jestjs:master Aug 24, 2017
rk-for-zulip added a commit to zulip/zulip-markdown-parser that referenced this pull request Sep 27, 2019
KaTeX prints a spurious error message during testing. This is
ultimately due to a Jest configuration issue fixed in 21.0.0.

References:

 * KaTeX issue: KaTeX/KaTeX#664
 * Jest issue:  jestjs/jest#3937
 * Jest fix:    jestjs/jest@fcf64d79a
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants