Closed
Bug 43164
Opened 25 years ago
Closed 21 years ago
exception not thrown for CharacterData.substringData
Categories
(Core :: DOM: Core & HTML, defect, P4)
Core
DOM: Core & HTML
Tracking
()
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
Reporter | ||
Comment 1•25 years ago
|
||
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.
Reporter | ||
Comment 2•25 years ago
|
||
URLs to testcase examples (until I submit simplified ones):
http://bubblegum/ngdriver/suites/dom1/cex001.html
http://bubblegum/ngdriver/suites/dom1/cex003.html
http://bubblegum/ngdriver/suites/dom1/cex004.html
Reporter | ||
Comment 4•25 years ago
|
||
Additional URLs to testcase samples:
http://bubblegum/ngdriver/suites/dom1/cdex028.html
http://bubblegum/ngdriver/suites/dom1/cdex029.html
Comment 5•25 years ago
|
||
Accepting and setting M17 for now...
Status: NEW → ASSIGNED
Priority: P3 → P2
Target Milestone: --- → M17
Comment 6•25 years ago
|
||
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]
Comment 7•25 years ago
|
||
Putting on [nsbeta2-] radar. Not critical to beta2.
Whiteboard: [NEED INFO] → [nsbeta2-]
Comment 8•25 years ago
|
||
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
Updated•24 years ago
|
Component: DOM Level 1 → DOM Core
Comment 12•24 years ago
|
||
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/
Comment 13•23 years ago
|
||
Comment 14•22 years ago
|
||
Mass-reassigning bugs to dom_bugs@netscape.com
Assignee: jst → dom_bugs
Status: ASSIGNED → NEW
Comment 15•21 years ago
|
||
*** 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.
Description
•