Skip to content

Commit

Permalink
Merge pull request #1 from jwpage/patch-1
Browse files Browse the repository at this point in the history
Change `<label>` from `for` attr to enclosing tag.
  • Loading branch information
CHH committed Jan 23, 2014
2 parents 10fc612 + f084232 commit fc9d2f1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/CHH/Stack/Honeypot.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,10 @@ function insertHoneypot($body)
$body = preg_replace('/(<form.*>)+/', <<<HTML
\$1
<div class="{$this->className}">
<label for="{$this->inputName}">{$this->label}</label>
<input type="text" name="{$this->inputName}" value="{$this->inputValue}" />
<label>
{$this->label}
<input type="text" name="{$this->inputName}" value="{$this->inputValue}" />
</label>
</div>
HTML
, $body);
Expand Down

0 comments on commit fc9d2f1

Please sign in to comment.