Eagerod / html-cruncher

HTML parser
MIT License
0 stars 0 forks source link

Linebreaks in unquoted attributes act like they're part of the value #16

Closed Eagerod closed 8 years ago

Eagerod commented 8 years ago

Example failing input:

<a id=myid
   href="/page?query=thing">
       some text
</a>

Expected output:

[
    {
        "dataType": "tag",
        "content": "a",
        "attributes": {
            "id": {
                "dataType": "attribute",
                "content": "myid"
            },
            "href": {
                "dataType": "attribute",
                "content": "/page?query=thing"
            }
        },
        "children": [
            {
                "dataType": "text",
                "content": "some text"
            }
        ]
    }
]
Eagerod commented 8 years ago

Closed by #22