Skip to content

Commit

Permalink
config: migrate dom_testing_default_html_version from :html4 to `:h…
Browse files Browse the repository at this point in the history
…tml5`

GitHub: ref rangubaGH-34

As of Rails v7.1, this setting is default.

- https://guides.rubyonrails.org/v7.1/configuring.html#config-dom-testing-default-html-version

Since end users use HTML5, it is important to update the HTML parsers
used in test helpers to reflect real-world usage.

- rails/rails#48682
  • Loading branch information
otegami committed Sep 2, 2024
1 parent 79aa342 commit 099009c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/new_framework_defaults_7_1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@
#
# In previous versions of Rails, these test helpers always used an HTML4 parser.
#++
# Rails.application.config.dom_testing_default_html_version = :html5
Rails.application.config.dom_testing_default_html_version = :html5

0 comments on commit 099009c

Please sign in to comment.