Remove 'type' attribute from script tag in gist liquid tag.
This commit is contained in:
parent
7e7cee6e56
commit
cdd3c0ef0c
|
@ -11,7 +11,7 @@ module Jekyll
|
|||
end
|
||||
|
||||
def render(context)
|
||||
"<script src=\"http://gist.github.com/#{@gist}.js\" type=\"text/javascript\"> </script>"
|
||||
"<script src=\"http://gist.github.com/#{@gist}.js\"> </script>"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -218,7 +218,7 @@ CONTENT
|
|||
end
|
||||
|
||||
should "write script tag" do
|
||||
assert_match %r{<script src='http://gist.github.com/#{@gist}.js' type='text/javascript'>\s</script>}, @result
|
||||
assert_match %r{<script src='http://gist.github.com/#{@gist}.js'>\s</script>}, @result
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue