Skip to content

Commit 0cda58a

Browse files
authored
Fix wording around reflection
Closes GH-16. Closes GH-17.
1 parent 2aedccd commit 0cda58a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

readme.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ reflected as a `hidden` property name set to the property value `true`, and
263263
> included.
264264
> In [JavaScript][], both `null` and `undefined` must be similarly ignored.
265265
266-
The DOM is strict in reflecting HTML and hast is not.
266+
The DOM has strict rules on how it coerces HTML to expected values, whereas
267+
hast is more lenient in how it reflects the source.
267268
Where the DOM treats `<div hidden="no"></div>` as having a value of `true` and
268269
`<img width="yes">` as having a value of `0`, these should be reflected as
269270
`'no'` and `'yes'`, respectively, in hast.

0 commit comments

Comments
 (0)