Simplify parsing README section
This commit is contained in:
parent
d7ddda3f21
commit
e306047067
18
README.md
18
README.md
|
@ -468,21 +468,9 @@ Bangs, [processing instructions](https://en.wikipedia.org/wiki/Processing_Instru
|
||||||
|
|
||||||
## Parsing
|
## Parsing
|
||||||
|
|
||||||
Only UTF-8/ASCII-encoded HTML code is supported.
|
- Input must be UTF-8.
|
||||||
|
- Opening tags must not be [omitted](https://html.spec.whatwg.org/multipage/syntax.html#syntax-tag-omission).
|
||||||
minify-html does no syntax checking or standards enforcement for performance and code complexity reasons.
|
- [Escaped and double-escaped](./notes/Script%20data.md) script content are not supported.
|
||||||
|
|
||||||
For example, this means that it's not an error to have self-closing tags, declare multiple `<body>` elements, use incorrect attribute names and values, or write something like `<br>alert('');</br>`
|
|
||||||
|
|
||||||
However, there are some syntax requirements for speed and sanity.
|
|
||||||
|
|
||||||
### Tags
|
|
||||||
|
|
||||||
Opening tags must not be [omitted](https://html.spec.whatwg.org/multipage/syntax.html#syntax-tag-omission).
|
|
||||||
|
|
||||||
### Script and style
|
|
||||||
|
|
||||||
minify-html does **not** handle [escaped and double-escaped](./notes/Script%20data.md) script content.
|
|
||||||
|
|
||||||
## Issues and contributions
|
## Issues and contributions
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue