fix each/else prefixed with `-` and spaces,
fix data-* attributes escaping,
modify some tests, add test for checked attribute.