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
+3
-3
@@ -162,7 +162,7 @@ class HtmlBuilder
|
||||
$title = $this->entities($title);
|
||||
}
|
||||
|
||||
return $this->toHtmlString('<a href="' . $url . '"' . $this->attributes($attributes) . '>' . $title . '</a>');
|
||||
return $this->toHtmlString('<a href="' . $this->entities($url) . '"' . $this->attributes($attributes) . '>' . $title . '</a>');
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -357,7 +357,7 @@ class HtmlBuilder
|
||||
{
|
||||
$html = '';
|
||||
|
||||
if (count($list) == 0) {
|
||||
if (count($list) === 0) {
|
||||
return $html;
|
||||
}
|
||||
|
||||
@@ -451,7 +451,7 @@ class HtmlBuilder
|
||||
}
|
||||
|
||||
// Treat boolean attributes as HTML properties
|
||||
if (is_bool($value) && $key != 'value') {
|
||||
if (is_bool($value) && $key !== 'value') {
|
||||
return $value ? $key : '';
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user