Skip to content

Commit 00d779e

Browse files
authored
Remove special handling of style
1 parent e6d9c2a commit 00d779e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

readme.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,13 @@ attribute is cased as `minLength`, and `typemustmatch` as `typeMustMatch`.
168168

169169
Property values should reflect the data type determined by their
170170
property name. For example, the following HTML `<div hidden></div>`
171-
contains a `hidden` (boolean) attribute, which is reflected a `hidden`
171+
contains a `hidden` (boolean) attribute, which is reflected as a `hidden`
172172
property name set to `true` (boolean) as value in HAST, and
173173
`<input minlength="5">`, which contains a `minlength` (valid
174174
non-negative integer) attribute, is reflected as a property `minLength`
175175
set to `5` (number) in HAST.
176176

177-
> In JSON, the value property value `null` must be treated as if the
177+
> In JSON, the property value `null` must be treated as if the
178178
> property was not included.
179179
> In JavaScript, both `null` and `undefined` must be similarly
180180
> ignored.
@@ -193,10 +193,7 @@ values. In HAST, these should be treated as ordered lists. For example,
193193
`<div class="alpha bravo"></div>` is represented as
194194
`["alpha", "bravo"]`.
195195

196-
> :warning: I’m unsure whether the value of `style` properties
197-
> should be exposed as an `object`: it’s nice for easy access but
198-
> would not work well for transformations, as CSS properties cascade
199-
> by order, which cannot be represented by JavaScript Objects.
196+
> There’s no special format for `style`.
200197
201198
### `Directive`
202199

0 commit comments

Comments
 (0)