Skip to content

Commit 16f6239

Browse files
committedJul 3, 2016
Rewrite algorithm
Changes: * Output less entities in places where they aren’t needed. Features: * `quote` — Preferred attribute quote to use; * `quoteSmart` — Use other quote if shorter; * `preferUnquoted` — Use no quotes if shorter; * `omitOptionalTags`; * `collapseEmptyAttributes`; * `tightSelfClosing` — No space before slash in void elements; * `tightCommaSeparatedLists`; * `tightAttributes` — No space between quoted attributes; * `allowParseErrors` — Smaller size by allowing parse errors; * `allowDangerousCharacters` — Smaller size by opening up XSS vectors. Bugs: * Fix stringification of numeric data attribute (`data-123` instead of `data123`). Refactor: * Refactor code-style; * Rewrite tests; * Remove superfluous dot-files.
1 parent b979b1b commit 16f6239

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+3297
-788
lines changed
 

Diff for: ‎.editorconfig

+1-7
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,8 @@ root = true
22

33
[*]
44
indent_style = space
5-
indent_size = 4
5+
indent_size = 2
66
end_of_line = lf
77
charset = utf-8
88
trim_trailing_whitespace = true
99
insert_final_newline = true
10-
11-
[*.{json,remarkrc,eslintrc,sh}]
12-
indent_size = 2
13-
14-
[*.md]
15-
trim_trailing_whitespace = false

Diff for: ‎.eslintignore

-4
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.