Automattic/o2

Unable to post comments with <code> tags that include HTML

Opened this issue · 1 comments

I've tried posting this comment on multiple P2s on WordPress.com (both a8c-flagged, and not, and the comment never publishes. @lancewillett has tested and confirmed this also happens on P2s hosted outside of WordPress.com

<code><script></code>

(replacing <code> with backticks has the same effect.)

Here's a video of what I see just in case it's helpful:
https://cloudup.com/clP72kPU4nd

And an error from the console:

Uncaught SyntaxError: Unexpected token <
    at eval (<anonymous>)
    at s2.wp.com/:2
    at Function.globalEval (s2.wp.com/:2)
    at Ha (s2.wp.com/:3)
    at a.fn.init.prepend (s2.wp.com/:3)
    at n.render (s2.wp.com/:7529)
    at _ (s2.wp.com/:2089)
    at m (s2.wp.com/:2089)
    at f (s2.wp.com/:2089)
    at n.u.trigger (s2.wp.com/:2089)

OS: macOS Sierra 10.12.3 (16D32)
Browser: Chrome Version 56.0.2924.87 (64-bit)

Here's the error I see in Safari 10.0.3 on OS X 10.12.3

SyntaxError: Unexpected token '<'
http://notes.nodarb.com/wp-includes/js/jquery/jquery.js?ver=1.12.4 line 2

[o2 plugin version 0.2, P2 version 1.0-wpcom]