Permalink
Browse files

Remove default type attribute from style tag as well.

It is not needed in HTML5.
  • Loading branch information...
1 parent c818a07 commit 3ec7093e845b1383c800e08efaecb21230a2cde0 @markstory markstory committed Mar 9, 2014
Showing with 3 additions and 3 deletions.
  1. +1 −1 src/View/Helper/HtmlHelper.php
  2. +2 −2 tests/TestCase/View/Helper/HtmlHelperTest.php
@@ -66,7 +66,7 @@ class HtmlHelper extends Helper {
'para' => '<p{{attrs}}>{{content}}</p>',
'parastart' => '<p{{attrs}}>',
'css' => '<link rel="{{rel}}" href="{{url}}"{{attrs}}/>',
- 'style' => '<style type="text/css"{{attrs}}>{{content}}</style>',
+ 'style' => '<style{{attrs}}>{{content}}</style>',
'charset' => '<meta http-equiv="Content-Type" content="text/html; charset={{charset}}" />',
'ul' => '<ul{{attrs}}>{{content}}</ul>',
'ol' => '<ol{{attrs}}>{{content}}</ol>',
@@ -574,7 +574,7 @@ public function testCssLink() {
$result = $this->Html->css('screen', array('rel' => 'import'));
$expected = array(
- 'style' => array('type' => 'text/css'),
+ '<style',
'preg:/@import url\(.*css\/screen\.css\);/',
'/style'
);
@@ -602,7 +602,7 @@ public function testCssLinkBC() {
$result = $this->Html->css('screen', 'import');
$expected = array(
- 'style' => array('type' => 'text/css'),
+ '<style',
'preg:/@import url\(.*css\/screen\.css\);/',
'/style'
);

0 comments on commit 3ec7093

Please sign in to comment.