mirror of
				https://github.com/yiisoft/yii2.git
				synced 2025-11-01 03:26:36 +08:00 
			
		
		
		
	Fix #20198: Boolean values of the value HTML attribute are now converted to integer values
				
					
				
			This commit is contained in:
		 Evgeniy Moiseenko
					Evgeniy Moiseenko
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							140570d186
						
					
				
				
					commit
					0e50cee88f
				
			| @ -1231,6 +1231,16 @@ EOD; | ||||
|         $this->assertEquals('', Html::renderTagAttributes(['class' => []])); | ||||
|         $this->assertEquals(' style="width: 100px; height: 200px;"', Html::renderTagAttributes(['style' => ['width' => '100px', 'height' => '200px']])); | ||||
|         $this->assertEquals('', Html::renderTagAttributes(['style' => []])); | ||||
|         $this->assertEquals(' type="submit" value="1"', Html::renderTagAttributes(['type' => 'submit', 'value' => true])); | ||||
|         $this->assertEquals(' type="submit" value="0"', Html::renderTagAttributes(['type' => 'submit', 'value' => false])); | ||||
|         $this->assertEquals( | ||||
|             ' type="submit" value="1" disabled', | ||||
|             Html::renderTagAttributes(['type' => 'submit', 'value' => true, 'disabled' => true]) | ||||
|         ); | ||||
|         $this->assertEquals( | ||||
|             ' type="submit" value="0"', | ||||
|             Html::renderTagAttributes(['type' => 'submit', 'value' => false, 'disabled' => false]) | ||||
|         ); | ||||
|  | ||||
|         $attributes = [ | ||||
|             'data' => [ | ||||
|  | ||||
		Reference in New Issue
	
	Block a user