CS-Notes/docs/_style/prism-master/tests/languages/jsx/issue1103.test
2018-12-19 14:09:39 +08:00

29 lines
565 B
Java

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.