Skip to content

Commit

Permalink
test: add sample for unquoted attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
panyang05 committed Dec 8, 2024
1 parent 7f51727 commit b01cac9
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<div class=foo></div>
<div class=foo></div>
<a href=/>home</a>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"html": {
"type": "Fragment",
"start": 0,
"end": 21,
"end": 40,
"children": [
{
"type": "Element",
Expand All @@ -27,6 +27,45 @@
}
],
"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"
}
]
}
]
}
Expand Down

0 comments on commit b01cac9

Please sign in to comment.