mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Merge pull request #2428 from dmorgan-fa/disable_animation_xhtml_fix
Wrapping injected disable_animation script in CDATA to prevent XHTML/…
This commit is contained in:
commit
8510765c68
1 changed files with 5 additions and 1 deletions
|
@ -44,7 +44,11 @@ module Capybara
|
||||||
end
|
end
|
||||||
|
|
||||||
DISABLE_MARKUP_TEMPLATE = <<~HTML
|
DISABLE_MARKUP_TEMPLATE = <<~HTML
|
||||||
<script defer>(typeof jQuery !== 'undefined') && (jQuery.fx.off = true);</script>
|
<script defer="defer">
|
||||||
|
//<![CDATA[
|
||||||
|
(typeof jQuery !== 'undefined') && (jQuery.fx.off = true);
|
||||||
|
//]]>
|
||||||
|
</script>
|
||||||
<style>
|
<style>
|
||||||
%<selector>s, %<selector>s::before, %<selector>s::after {
|
%<selector>s, %<selector>s::before, %<selector>s::after {
|
||||||
transition: none !important;
|
transition: none !important;
|
||||||
|
|
Loading…
Reference in a new issue