Bug 148710 - document.createProcessingInstruction() does not behave according to specification
Summary: document.createProcessingInstruction() does not behave according to specifica...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL: https://dom.spec.whatwg.org/#dom-docu...
Keywords: InRadar, WebExposed
Depends on:
Blocks:
 
Reported: 2015-09-02 09:13 PDT by Chris Dumez
Modified: 2015-09-02 13:04 PDT (History)
5 users (show)

See Also:


Attachments
Patch (22.60 KB, patch)
2015-09-02 09:27 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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