Open ctdealba opened 1 year ago
More details about an initial investigation: p1674223519935029-slack-C8QJAM52B
| We also figured it out that the code works successfully on Chrome, but it crashes on Firefox.
For anyone that doesn't have access to Slack, the issue happens when you: Copy Python code (or code from any language more strict about spacing, really) from a Firefox browser without clicking twice on the block on the frontend.
This is the code I used for testing:
def hello(name):
msg = "hello {}"
if name == "test":
msg = "bye {}"
print(msg.format(name))
hello("world")
hello("test")
Note that using Chrome, OR clicking twice on the code shown in the frontend so it transforms to a textarea
, fixes the issue successfully.
Reported in here: https://wordpress.org/support/topic/works-but-if-you-copy-code-and-wan-to-to-use-it-show-error/
Our development team was able to reproduce this issue in Python:
We also figured it out that the code works successfully on Chrome, but it crashes on Firefox.