Skip to content

Possible typo in code example and a question about difference between hast and DOM property values #15

@flurmbo

Description

@flurmbo

I'm new to hast so I might be misunderstanding this, but I think the "no" in <div hidden=no></div> in the following excerpt of readme.md should be in quotation marks:

The DOM is strict in reflecting HTML and hast is not.
Where the DOM treats <div hidden=no></div> as having a value of true and
<img width="yes"> as having a value of 0, these should be reflected as
'no' and 'yes', respectively, in hast.

Also, I'm confused about the meaning of the first sentence in this excerpt. If hast always reflects the written value of html and the DOM is flexible about it, shouldn't this sentence read "hast is strict in reflecting HTML and the DOM is not"? Thanks for any clarification

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions