You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Formatting the document causes quotation marks to be added around output markup that contains | json, which is not a safe formatting operation if the value being piped to the json filter is a string.
I'm not entirely sure what our stance wants to be on this.
Because a variable could contain quotes in it, it would mean that we should never quote swap. If I turn that off, I'll get issues reporting that we don't quote swap :P and don't maintain a consistent style.
Describe the bug
Formatting the document causes quotation marks to be added around output markup that contains
| json
, which is not a safe formatting operation if the value being piped to thejson
filter is a string.Unformatted source
No quotes around the tag:
Expected output
(no change)
Actual output
Adds quotes around tag:
Which gets evaluated as:
(Or maybe that's just the way Chrome renders it on the 'Elements' tab. When I copy the outerHTML to a clipboard it looks like
""someValue""
)And then the element's
dataset
gets changed from:to:
Debugging information
The text was updated successfully, but these errors were encountered: