Open Javey opened 8 years ago
Everyone is discussing serialization #20 #31 , it's complex. How about this simple PR?
Fixed:
setAttribute
div.setAttribute('data-null', null)
<div data-null="null"></div>
<div data-null=""></div>
div.setAttribute('data-number', 0)
<div data-number="0"></div>
<div data-number=""></div>
false
option.selected = false
<option></option>
<option selected=""></option>
Everyone is discussing serialization #20 #31 , it's complex. How about this simple PR?
Fixed:
setAttribute
. So :div.setAttribute('data-null', null)
should be serialized to<div data-null="null"></div>
instead of<div data-null=""></div>
div.setAttribute('data-number', 0)
should be serialized to<div data-number="0"></div>
instead of<div data-number=""></div>
false
property should not be serialized. So:option.selected = false
should be serialized to<option></option>
instead of<option selected=""></option>