katoikia-app/web-ui/web-react/node_modules/prismjs/tests/languages/jsx/issue1103.test

29 lines
565 B
Plaintext

var myDivElement = <div foo="bar baz" />;
----------------------------------------------------
[
["keyword", "var"],
" myDivElement ",
["operator", "="],
["tag", [
["tag", [
["punctuation", "<"],
"div"
]],
["attr-name", ["foo"]],
["attr-value", [
["punctuation", "="],
["punctuation", "\""],
"bar baz",
["punctuation", "\""]
]],
["punctuation", "/>"]
]],
["punctuation", ";"]
]
----------------------------------------------------
Checks that quoted attribute values can contain spaces.
See #1103.