Closed Bug 43164 Opened 25 years ago Closed 21 years ago

exception not thrown for CharacterData.substringData

Categories

(Core :: DOM: Core & HTML, defect, P4)

defect

Tracking

()

RESOLVED DUPLICATE of bug 16610
Future

People

(Reporter: ckritzer, Unassigned)

References

()

Details

(Keywords: dom1, testcase, Whiteboard: [nsbeta2-])

Overview: The INDEX_SIZE_ERR is not being thrown when the specified count is negative. An example of the parameters for CharacterData.substringData(offset,count) would be: document.getElementsByTagName("BODY".item(0).firstChild.substringData(28,-1); The INDEX_SIZE_ERR is not being thrown for that -1. Steps to Reproduce: 1) Launch 2000-06-19-xx build. 2) Load http://bubblegum/ngdriver/dom1/cdex001.html (or attached testcase) Actual Results: No exception is thrown Expected Results: INDEX_SIZE_ERR thrown Platforms Found/Tested on: - MacOS9 2000-06-19-08-M17 Commercial - Linux6 2000-06-19-20-M17 Commercial - Win98 2000-06-19-21-M17 Commercial Additional Comments: Nominating nsbeta2
Setting self as QAContact. Nominating nsbeta2: Negative numbers in the items count of a string manipulation could cause very bad things to happen. "Hello string. I'd like to remove -3 characters from you." Removing 3 things is easy. Removing -3 things is bad.
Keywords: nsbeta2
QA Contact: gerardok → ckritzer
Whiteboard: PDT - please consider for NSBETA2
*** Bug 43172 has been marked as a duplicate of this bug. ***
Accepting and setting M17 for now...
Status: NEW → ASSIGNED
Priority: P3 → P2
Target Milestone: --- → M17
Whiteboard: PDT - please consider for NSBETA2
Putting on [NEED INFO] radar. PDT needs to know impact to user and risk of fix to make a call on this bug. We need to know what "bad things" might occur as a result of this bug.
Whiteboard: [NEED INFO]
Putting on [nsbeta2-] radar. Not critical to beta2.
Whiteboard: [NEED INFO] → [nsbeta2-]
Marking FUTURE. If I understand correctly, the workaround is simple: don't be dumb and pass negative numbers in this case in your code. ;->
Target Milestone: M17 → Future
Mass update of qa contact
QA Contact: ckritzer → janc
Keywords: dom1
Component: DOM Level 1 → DOM Core
QA contact Update
QA Contact: janc → desale
Updating QA contact to Shivakiran Tummala.
QA Contact: desale → stummala
Tested with Mozilla 0.9.3 for MacOS 9.1. Still a bug. You can verify this by running Netscapes "tc_htxt500a Test Text Properties" test available from the DOM HTML Level 2 Conformance test, available from this link: http://developer.netscape.com/evangelism/tools/testsuites/
P4 and normal, to reflect bug 16610. This might be a dup of bug 16610
Severity: major → normal
Keywords: testcase
Priority: P2 → P4
Mass-reassigning bugs to dom_bugs@netscape.com
Assignee: jst → dom_bugs
Status: ASSIGNED → NEW
*** This bug has been marked as a duplicate of 16610 ***
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
Component: DOM: Core → DOM: Core & HTML
QA Contact: stummala → general
You need to log in before you can comment on or make changes to this bug.