Skip to content

Commit

Permalink
#9: rendering common HTML attributes was missing on Form element
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisBirkholz committed Sep 1, 2017
1 parent 52b9841 commit f9778c0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Html/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,16 +367,15 @@ final public function setTarget(string $target = null) : self

protected function renderAttributes() : string
{
return
Util::renderHtmlAttribute('accept-charset', $this->acceptCharset)
return parent::renderAttributes()
. Util::renderHtmlAttribute('accept-charset', $this->acceptCharset)
. Util::renderHtmlAttribute('action', $this->action)
. $this->renderAutocompleteAttribute()
. Util::renderHtmlAttribute('enctype', $this->enctype)
. Util::renderHtmlAttribute('method', $this->method)
. Util::renderHtmlAttribute('name', $this->name)
. Util::renderHtmlAttribute('novalidate', $this->novalidate)
. Util::renderHtmlAttribute('target', $this->target)

;
}

Expand Down

0 comments on commit f9778c0

Please sign in to comment.