WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 15892
DOM Range operations are not implemented for ProcessingInstruction nodes
https://bugs.webkit.org/show_bug.cgi?id=15892
Summary
DOM Range operations are not implemented for ProcessingInstruction nodes
Alexey Proskuryakov
Reported
2007-11-07 22:53:11 PST
ProcessingInstruction nodes are ignored in Range.deleteContents, Range.cloneContents and Range.extractContents. This is not a very big deal, since neither Firefox nor Opera support these operations on ProcessingInstructions. However, WebKit behavior is already different: we let Ranges start/end in ProcessingInstruction text, while other browsers raise INDEX_SIZE_ERR. Seems logical to implement the rest of the spec in this case. <
http://www.w3.org/TR/DOM-Level-2-Traversal-Range/ranges.html
>: "INDEX_SIZE_ERR: Raised if offset is negative or greater than the number of child units in refNode. Child units are 16-bit units if refNode is a type of CharacterData node (e.g., a Text or Comment node) or a ProcessingInstruction node. Child units are Nodes in all other cases."
Attachments
proposed fix
(9.37 KB, patch)
2007-11-07 22:58 PST
,
Alexey Proskuryakov
darin
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alexey Proskuryakov
Comment 1
2007-11-07 22:58:38 PST
Created
attachment 17117
[details]
proposed fix
Darin Adler
Comment 2
2007-11-10 12:15:17 PST
Comment on
attachment 17117
[details]
proposed fix r=me
Alexey Proskuryakov
Comment 3
2007-11-10 12:27:53 PST
Committed revision 27665.
Lucas Forschler
Comment 4
2019-02-06 09:02:33 PST
Mass moving XML DOM bugs to the "DOM" Component.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug