document.createProcessingInstruction() does not behave according to specification: https://dom.spec.whatwg.org/#dom-document-createprocessinginstruction 1. It does not work for HTML documents 2. It does not throw an InvalidCharacterError if the data contains "?>" (step 2) Both Chrome and Firefox comply with the specification here.
Created attachment 260420 [details] Patch
Comment on attachment 260420 [details] Patch Clearing flags on attachment: 260420 Committed r189253: <http://trac.webkit.org/changeset/189253>
All reviewed patches have been landed. Closing bug.
rdar://problem/22544096