clear rawValue from JSX attribute values as they're tokenised and parsed differently - fixes #2114
This commit is contained in:
5
test/fixtures/jsx/basic/18/expected.json
vendored
5
test/fixtures/jsx/basic/18/expected.json
vendored
@@ -147,7 +147,7 @@
|
||||
}
|
||||
},
|
||||
"value": "attribute",
|
||||
"rawValue": "attribute",
|
||||
"rawValue": null,
|
||||
"raw": "\"attribute\""
|
||||
}
|
||||
}
|
||||
@@ -175,6 +175,5 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": []
|
||||
}
|
||||
}
|
||||
7
test/fixtures/jsx/basic/19/expected.json
vendored
7
test/fixtures/jsx/basic/19/expected.json
vendored
@@ -116,7 +116,7 @@
|
||||
}
|
||||
},
|
||||
"value": "leading",
|
||||
"rawValue": "leading",
|
||||
"rawValue": null,
|
||||
"raw": "\"leading\""
|
||||
}
|
||||
},
|
||||
@@ -165,7 +165,7 @@
|
||||
}
|
||||
},
|
||||
"value": "attribute",
|
||||
"rawValue": "attribute",
|
||||
"rawValue": null,
|
||||
"raw": "\"attribute\""
|
||||
}
|
||||
},
|
||||
@@ -254,6 +254,5 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": []
|
||||
}
|
||||
}
|
||||
2
test/fixtures/jsx/basic/3/expected.json
vendored
2
test/fixtures/jsx/basic/3/expected.json
vendored
@@ -147,7 +147,7 @@
|
||||
}
|
||||
},
|
||||
"value": "bar",
|
||||
"rawValue": "bar",
|
||||
"rawValue": null,
|
||||
"raw": "\"bar\""
|
||||
}
|
||||
}
|
||||
|
||||
9
test/fixtures/jsx/basic/4/expected.json
vendored
9
test/fixtures/jsx/basic/4/expected.json
vendored
@@ -180,7 +180,7 @@
|
||||
}
|
||||
},
|
||||
"value": " ",
|
||||
"rawValue": " ",
|
||||
"rawValue": null,
|
||||
"raw": "\" \""
|
||||
}
|
||||
},
|
||||
@@ -229,7 +229,7 @@
|
||||
}
|
||||
},
|
||||
"value": "&",
|
||||
"rawValue": "&",
|
||||
"rawValue": null,
|
||||
"raw": "\"&\""
|
||||
}
|
||||
},
|
||||
@@ -278,7 +278,7 @@
|
||||
}
|
||||
},
|
||||
"value": "&r;",
|
||||
"rawValue": "&r;",
|
||||
"rawValue": null,
|
||||
"raw": "\"&r;\""
|
||||
}
|
||||
}
|
||||
@@ -306,6 +306,5 @@
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": []
|
||||
}
|
||||
}
|
||||
2
test/fixtures/jsx/basic/7/expected.json
vendored
2
test/fixtures/jsx/basic/7/expected.json
vendored
@@ -116,7 +116,7 @@
|
||||
}
|
||||
},
|
||||
"value": "&&",
|
||||
"rawValue": "&&",
|
||||
"rawValue": null,
|
||||
"raw": "\"&&\""
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user