Skip to content

Commit

Permalink
failing tests for #1066
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jan 5, 2018
1 parent 70ce51d commit d4d7ef9
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/parser/samples/html-entities/input.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>this &lt;em&gt;should&lt;/em&gt; not be <span>&lt;strong&gt;bold&lt;/strong&gt;</span></p>
42 changes: 42 additions & 0 deletions test/parser/samples/html-entities/output.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"hash": 488075009,
"html": {
"start": 0,
"end": 93,
"type": "Fragment",
"children": [
{
"start": 0,
"end": 93,
"type": "Element",
"name": "p",
"attributes": [],
"children": [
{
"start": 3,
"end": 43,
"type": "Text",
"data": "this &lt;em&gt;should&lt;/em&gt; not be "
},
{
"start": 43,
"end": 89,
"type": "Element",
"name": "span",
"attributes": [],
"children": [
{
"start": 49,
"end": 82,
"type": "Text",
"data": "&lt;strong&gt;bold&lt;/strong&gt;"
}
]
}
]
}
]
},
"css": null,
"js": null
}
5 changes: 5 additions & 0 deletions test/runtime/samples/html-entities-inside-elements/_config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export default {
html: `
<p>this &lt;em&gt;should&lt;/em&gt; not be <span>&lt;strong&gt;bold&lt;/strong&gt;</span></p>
`
};
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<p>this &lt;em&gt;should&lt;/em&gt; not be <span>&lt;strong&gt;bold&lt;/strong&gt;</span></p>

0 comments on commit d4d7ef9

Please sign in to comment.