mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
Wrapping injected disable_animation script in CDATA to prevent XHTML/XML parser errors
This commit is contained in:
parent
30ec8c188d
commit
849ec3f26c
1 changed files with 5 additions and 1 deletions
|
@ -44,7 +44,11 @@ module Capybara
|
|||
end
|
||||
|
||||
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>
|
||||
%<selector>s, %<selector>s::before, %<selector>s::after {
|
||||
transition: none !important;
|
||||
|
|
Loading…
Add table
Reference in a new issue