Bug 155320

Summary: Element::removeAttribute can raise bogus exceptions
Product: [Applications] konqueror Reporter: Maksim Orlovich <maksim>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

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