The DOM spec doesn't talk about this, but we should probably throw INVALID_CHARACTER_ERR in: - createComment for - not followed by a character other than - - createProcessingInstruction for data containing ?> - createCDATASection for ]]> Otherwise we'll create unserializable documents.
Created attachment 245742 [details] [diff] [review] Fix
Assignee: general → bzbarsky
Priority: -- → P2
Summary: createComment, createProcessingInstruction and createCDATASection need to check their arguments for invalid strings → [FIX]createComment, createProcessingInstruction and createCDATASection need to check their arguments for invalid strings
Target Milestone: --- → mozilla1.9alpha
Status: NEW → RESOLVED
Last Resolved: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.