X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FHtml.php;h=5f91dacaba104b26716c1bc9fa8d45f1770df884;hb=b5a6c4852f6f779bc860d635332783d7829b51a5;hp=506b9cc3bf4d8de51cf1235e51e38cf5cba59e82;hpb=977c8103024734daed49acd40499883bf419ff0d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Html.php b/includes/Html.php index 506b9cc3bf..5f91dacaba 100644 --- a/includes/Html.php +++ b/includes/Html.php @@ -359,8 +359,6 @@ class Html { 'keygen' => array( 'keytype' => 'rsa' ), 'link' => array( 'media' => 'all' ), 'menu' => array( 'type' => 'list' ), - // Note: the use of text/javascript here instead of other JavaScript - // MIME types follows the HTML5 spec. 'script' => array( 'type' => 'text/javascript' ), 'style' => array( 'media' => 'all', @@ -674,7 +672,6 @@ class Html { } return self::rawElement( 'style', array( - 'type' => 'text/css', 'media' => $media, ), $contents ); } @@ -691,7 +688,6 @@ class Html { return self::element( 'link', array( 'rel' => 'stylesheet', 'href' => $url, - 'type' => 'text/css', 'media' => $media, ) ); } @@ -744,10 +740,10 @@ class Html { } /** - * Convenience function to produce a checkbox (input element with type=checkbox) + * Convenience function to produce a radio button (input element with type=radio) * * @param string $name Name attribute - * @param bool $checked Whether the checkbox is checked or not + * @param bool $checked Whether the radio button is checked or not * @param array $attribs Array of additional attributes * @return string Raw HTML */