[Bug 12205] New: Make ProcessingInstruction implement CharacterData

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12205

           Summary: Make ProcessingInstruction implement CharacterData
           Product: WebAppsWG
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DOM Core
        AssignedTo: annevk@opera.com
        ReportedBy: Simetrical+w3cbug@gmail.com
         QAContact: member-webapi-cvs@w3.org
                CC: mike@w3.org, www-dom@w3.org


All DOM specs have to deal with ProcessingInstructions for completeness, and it
would be simpler if we could just deal with them at the same time as Comments
and Text nodes instead of special-casing them.  Currently we often can't,
because their "data" attribute isn't actually the same as CharacterData's and
they don't have all the handy features.  Example where PIs need to be
special-cased:

http://html5.org/specs/dom-range.html#concept-node-length

It's also coming up when I'm speccing Range.deleteContents().  Browsers don't
make PIs implement CharacterData right now, but I can't imagine it would be
more than a few lines' change; and since no one uses XML, I find it hard to
believe there'd be any compat problem.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Received on Monday, 28 February 2011 20:20:06 UTC