| Summary: | Unspecified DOM attributes without defaults not DOM Level 2 compliant | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | Unknown <null> |
| Component: | khtml ecma | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | RedHat Enterprise Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Unknown
2004-06-18 18:28:18 UTC
Forgot to add that the getAttribute() method in Konq is DOM compliant, it does return the empty string for nonexisting attributes. It's the "property attributes" which have this bug. In this file: http://webcvs.kde.org/cgi-bin/cvsweb.cgi/kdelibs/khtml/ecma/kjs_html.cpp?rev=1.272 Change: case ElementLang: return getString(element.lang()); case ElementDir: return getString(element.dir()); case ElementClassName: return getString(element.className()); to this: case ElementLang: return String(element.lang()); case ElementDir: return String(element.dir()); case ElementClassName: return String(element.className()); We we discussing this issue for quite a while already. Thanks for the pointer to the spec. Fixed in CVS HEAD now. |