CharacterData methods and properties throw "Not implemented" on ProcessingInstruction nodes

Issue #12203272 • Assigned to Travis L.


Stef B.
Jun 1, 2017
This issue is public.
Found in
  • Microsoft Edge
Standard affected
DOM Standard

Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

The DOM standard defines ProcessingInstruction nodes as implementing the CharacterData interface, which contains several convenience properties and methods for dealing with the data of the node. However, Edge currently throws “Not implemented” for most of these:

var d = document.implementation.createDocument(null, '', null);
var p = d.createProcessingInstruction('target', 'data'); = 'test'; // works
p.length // Not implemented
p.substringData(0, 2); // works - "te"
p.appendData('test'); // Not implemented
p.insertData(1, 'test'); // Not implemented
p.replaceData(0, 4, 'test'); // Not implemented
p.deleteData(0, 2); // Seems to make the F12 console unresponsive

Please consider implementing these methods, as they already work for nodes that implement the other CharacterData-derived interfaces (Comment, Text and CDATASection).


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

      Changed Assigned To to “Travis L.”

    You need to sign in to your Microsoft account to add a comment.

    Sign in