Skip to content

Conversation

@lsfiege
Copy link

@lsfiege lsfiege commented Dec 5, 2017

Added two new tests for assert it generates a void tag element with mixed attributes and also generates a normal tag element with mixed attributes

{
$element = new HtmlElement(
'input',
['id' => 'my_paragraph', 'class' => 'paragraph', 'required'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Although probably not very important, I'd change the name of the id and the class.

{
$element = new HtmlElement(
'textarea',
['id' => 'disabled_paragraph', 'class' => 'paragraph', 'disabled'],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants