Improve: set default value boolean true

This should fix handling boolean html attributes like "required".
Add: cast to bool
Improve: handling invalid attributes
Fix: neccessary value for empty attributes