Fix some inputs treated like nestedModel when using an accessor (#471)
* 5.6 Prep * Added $optgroupsAttributes parameter to select method. * escape HTML entities in `src`-attribute * Style fixes. Replaced == with ===.
This commit is contained in:
1 parent
7e49960e8f
commit
2c5db92f66
6 files changed
+83
-34
No files matched your search
@@ -118,8 +118,11 @@ class HtmlBuilderTest extends PHPUnit_Framework_TestCase
|
||||
|
||||
$result2 = $this->htmlBuilder->link("http://www.example.com", "<span>Example.com</span>", ["class" => "example-link"], null, false);
|
||||
|
||||
$result3 = $this->htmlBuilder->link("https://a.com/b?id=4¬_id=5", "URL which needs escaping");
|
||||
|
||||
$this->assertEquals('<a href="http://www.example.com" class="example-link"><span>Example.com</span></a>', $result1);
|
||||
$this->assertEquals('<a href="http://www.example.com" class="example-link"><span>Example.com</span></a>', $result2);
|
||||
$this->assertEquals('<a href="https://a.com/b?id=4&not_id=5">URL which needs escaping</a>', $result3);
|
||||
}
|
||||
|
||||
public function testMailto()
|
||||
|
||||
Reference in new issue
Block a user