document.createProcessingInstruction() does not behave according to specification:
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]
Comment on attachment 260420 [details]
Clearing flags on attachment: 260420
Committed r189253: <http://trac.webkit.org/changeset/189253>
All reviewed patches have been landed. Closing bug.