Skip to content

Comments cause Left Expected EOF. #2

@kindaro

Description

@kindaro

Hello!

I was trying to parse some HTML code and noticed that comments fail to parse. For example:

> parseHTML "<html><body><p>I am a comment !</p><p>See me?</p></body></html>"
(Right (Element "html" (Nil) ((Element "body" (Nil) ((Element "p" (Nil) ((TextNode "I am a comment !" : Nil)) : Element "p" (Nil) ((TextNode "See me?" : Nil)) : Nil)) : Nil)) : Nil))
> parseHTML "<html><body><p>I am a <!-- comment --> !</p><p>See me?</p></body></html>"
(Left Expected EOF)

Is this correct behaviour? How should I specify comments to make them recognized?

I'm using the latest version I just pulled from this repository, with psci 0.10.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions