Skip to content

Boolean attribute parsing

Latest
Compare
Choose a tag to compare
@warpech warpech released this 28 Jun 09:19
· 5 commits to master since this release

If an attribute corresponds to a property, which default value is a boolean, the attribute value is also processed as boolean, eg.:

<palindrom-client use-web-socket="true">
<palindrom-client use-web-socket="false">

Will be interpreted as:

{ useWebSocket: true }
{ useWebSocket: false }

Implemented in PR #84

Warning: This is likely to change again in the future, see #85