You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-29 22:48:10 +02:00
All: Use Lerna to manage monorepo
This commit is contained in:
15
packages/fork-sax/test/script-close-better.js
Normal file
15
packages/fork-sax/test/script-close-better.js
Normal file
@@ -0,0 +1,15 @@
|
||||
require(__dirname).test({
|
||||
xml: "<html><head><script>'<div>foo</div></'</script></head></html>",
|
||||
expect: [
|
||||
['opentagstart', {'name': 'HTML', 'attributes': {}}],
|
||||
['opentag', {'name': 'HTML', 'attributes': {}, isSelfClosing: false}],
|
||||
['opentagstart', {'name': 'HEAD', 'attributes': {}}],
|
||||
['opentag', {'name': 'HEAD', 'attributes': {}, isSelfClosing: false}],
|
||||
['opentagstart', {'name': 'SCRIPT', 'attributes': {}}],
|
||||
['opentag', {'name': 'SCRIPT', 'attributes': {}, isSelfClosing: false}],
|
||||
['script', "'<div>foo</div></'"],
|
||||
['closetag', 'SCRIPT'],
|
||||
['closetag', 'HEAD'],
|
||||
['closetag', 'HTML']
|
||||
]
|
||||
})
|
||||
Reference in New Issue
Block a user