PHPIDS
Current file: /home/mario/workspace/php-ids.org/trunk/lib/IDS/vendors/htmlpurifier/HTMLPurifier/HTMLModule/Target.php
Legend: executed not executed dead code

  Coverage
  Classes Methods Lines
Total
100.00 %100.00%
100.00% 1 / 1
100.00 %100.00%
100.00% 1 / 1
100.00 %100.00%
100.00% 8 / 8
 
HTMLPurifier_HTMLModule_Target
100.00 %100.00%
100.00% 1 / 1
100.00 %100.00%
100.00% 1 / 1
100.00 %100.00%
100.00% 8 / 8
 public function __construct()
100.00 %100.00%
100.00% 1 / 1
100.00 %100.00%
100.00% 7 / 7


       1                 : <?php                                                                  
       2                 :                                                                        
       3                 : /**                                                                    
       4                 :  * XHTML 1.1 Target Module, defines target attribute in link elements. 
       5                 :  */                                                                    
       6               1 : class HTMLPurifier_HTMLModule_Target extends HTMLPurifier_HTMLModule   
       7                 : {                                                                      
       8                 :                                                                        
       9                 :     public $name = 'Target';                                           
      10                 :                                                                        
      11                 :     public function __construct() {                                    
      12               1 :         $elements = array('a');                                        
      13               1 :         foreach ($elements as $name) {                                 
      14               1 :             $e = $this->addBlankElement($name);                        
      15                 :             $e->attr = array(                                          
      16               1 :                 'target' => new HTMLPurifier_AttrDef_HTML_FrameTarget()
      17               1 :             );                                                         
      18               1 :         }                                                              
      19               1 :     }                                                                  
      20                 :                                                                        
      21                 : }                                                                      
      22                 :                                                                        

Generated by PHPUnit 3.2.20 and Xdebug 2.0.3 at Sat Jun 7 16:15:42 CEST 2008.