X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/supprimer.php?a=blobdiff_plain;f=includes%2FHtml.php;h=5f91dacaba104b26716c1bc9fa8d45f1770df884;hb=86c08b240167d01217d4cd628e978078b1ed7011;hp=506b9cc3bf4d8de51cf1235e51e38cf5cba59e82;hpb=91d69e12e1d2e00953cae3c153e37f3d36e5903c;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 */