Added tests for the backslash, should fail

pull/14603/head
Caroline Michalow 2 years ago
parent dd9abea2a1
commit eeea867537

@ -1 +1,2 @@
<div class=foo></div>
<div class=foo></div>
<a href=/>home</a>

@ -2,12 +2,12 @@
"html": {
"type": "Fragment",
"start": 0,
"end": 21,
"end": 40,
"children": [
{
"type": "Element",
"start": 0,
"end": 21,
"end": 40,
"name": "div",
"attributes": [
{
@ -27,7 +27,47 @@
}
],
"children": []
},
{
"type": "Text",
"start": 21,
"end": 22,
"raw": "\n",
"data": "\n"
},
{
"type": "Element",
"start": 22,
"end": 40,
"name": "a",
"attributes": [
{
"type": "Attribute",
"start": 25,
"end": 31,
"name": "href",
"value": [
{
"start": 30,
"end": 31,
"type": "Text",
"raw": "/",
"data": "/"
}
]
}
],
"children": [
{
"type": "Text",
"start": 32,
"end": 36,
"raw": "home",
"data": "home"
}
]
}
]
}
}

Loading…
Cancel
Save