Remove 'type' attribute from script tag in gist liquid tag.

This commit is contained in:
Parker Moore 2013-02-24 01:30:41 +01:00
parent 7e7cee6e56
commit cdd3c0ef0c
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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