Bug 148710

Summary: document.createProcessingInstruction() does not behave according to specification
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, esprehn+autocc, kangil.han, rniwa, webkit-bug-importer
Priority: P2 Keywords: InRadar, WebExposed
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://dom.spec.whatwg.org/#dom-document-createprocessinginstruction
Attachments:
Description Flags
Patch none

Description Chris Dumez 2015-09-02 09:13:43 PDT
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.
Comment 1 Chris Dumez 2015-09-02 09:27:21 PDT
Created attachment 260420 [details]
Patch
Comment 2 Chris Dumez 2015-09-02 10:09:22 PDT
Comment on attachment 260420 [details]
Patch

Clearing flags on attachment: 260420

Committed r189253: <http://trac.webkit.org/changeset/189253>
Comment 3 Chris Dumez 2015-09-02 10:09:26 PDT
All reviewed patches have been landed.  Closing bug.
Comment 4 Chris Dumez 2015-09-02 13:04:52 PDT
rdar://problem/22544096