Bug 155320 - Element::removeAttribute can raise bogus exceptions
Summary: Element::removeAttribute can raise bogus exceptions
Status: RESOLVED FIXED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-09 08:06 UTC by Maksim Orlovich
Modified: 2008-01-09 09:26 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Orlovich 2008-01-09 08:06:20 UTC
Version:           4.00.00 (KDE 4.0.0) (using KDE 4.00.00 (KDE 4.0.0), compiled sources)
Compiler:          gcc
OS:                Linux (i686) release 2.6.24-0.rc6.2mdvsmp

It seems like we can throw NOT_FOUND_ERROR from Element::removeAttribute. Per the spec we shouldn't, and that can cause some scripts to blow up. Will testcase...
Comment 1 Maksim Orlovich 2008-01-09 08:27:45 UTC
SVN commit 758792 by orlovich:

Testcase + fixed baseline for #155320. Patch is in regtesting...
CCBUG:155320


 A             baseline/ecma/155320.html-dom  
 AM            baseline/ecma/155320.html-dump.png  
 A             baseline/ecma/155320.html-render  
 A             tests/ecma/155320.html  


WebSVN link: http://websvn.kde.org/?view=rev&revision=758792
Comment 2 Maksim Orlovich 2008-01-09 09:26:10 UTC
SVN commit 758800 by orlovich:

Don't raise NOT_FOUND_ERROR exceptions from Element::removeAttribute...
Another bad 4.0.0 regression from 3.5.x :(
BUG:155320

 M  +3 -0      dom_elementimpl.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=758800