Bug 33033
| Summary: | style object does not return all style objects | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | John A. Bilicki III <jab_creations> |
| Component: | DOM | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED CONFIGURATION CHANGED | ||
| Severity: | Normal | CC: | apavlov, ap, bfulgham |
| Priority: | P2 | ||
| Version: | 528+ (Nightly build) | ||
| Hardware: | All | ||
| OS: | All | ||
| Bug Depends on: | |||
| Bug Blocks: | 14363 | ||
John A. Bilicki III
This script works correctly in Opera, Firefox, and IE...
var dom_properties=new Array();
for (var a in document.getElementById('element_id').style) {dom_properties.push(a);}
dom_properties.sort();
alert(dom_properties);
This is important to me as a web designer as I test and compare DOM lists of browsers/versions to see what is new so I can start implementing it in my work. If I'm not aware of it (because it's not listed) or either buried in documentation or not documented at all it becomes much more tedious to try to implement new features.
I have also just filed a bug over at KDE, the bug number is 220627 and unfortunately KHTML's DOM is not well documented, as far as from what I can tell.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
<http://bugs.kde.org/show_bug.cgi?id=220627>
John A. Bilicki III
The following link provides a visual of methods and properties detected in every browser, the property list for WebKit browsers is very short compared to other browsers...
http://www.jabcreations.com/blog/?prompt=console-dom
This resource was not available when I made the initial bug report.
Alexander Pavlov (apavlov)
Unless I'm mistaken, this was fixed in bug 23946.