#125 [NEW]: Stylesheet Type Problem

From: Date: Mon, 20 Oct 2003 09:11:46 +0000
Subject: #125 [NEW]: Stylesheet Type Problem
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-22841@lists.php.net to get a copy of this message
From: pascalthuet at altern dot org Operating system: Linux PHP version: Irrelevant PHP Bug Type: HTML_Page Bug description: Stylesheet Type Problem Description: ------------ By adding a linked Stylsheet with the methode addStyleSheet(), the class did not output the type correclty At line 447 of Page.php $strHtml .= $tab . "<link rel=\"stylesheet\" href=\"$strSrc\" type=\"".$strAttr['type'].'"'; the key 'type' does not exist. The correct key should be $strAttr['media'].' Reproduce code: --------------- page->addStyleSheet('test.css'); Expected result: ---------------- page->addStyleSheet('test.css'); should output : <link rel="stylesheet" href="test.css" type="text/css"> Actual result: -------------- page->addStyleSheet('test.css'); will output : <link rel="stylesheet" href="test.css" type=""> -- Edit bug report at http://pear.php.net/bugs/bug.php?id=125&edit=1 --

« previous php.pear.dev (#22841) next »