patch for 'cssFloat'
David Faure
dfaure at klaralvdalens-datakonsult.se
Thu Oct 2 00:04:05 CEST 2003
On Wednesday 01 October 2003 22:34, David Hyatt wrote:
> hasProperty and tryGet didn't do the right thing for 'cssFloat' in the
> Safari tree. Because hasProperty is called when you try to set using a
> with clause, e.g.,
>
> with (elt.style) {
> cssFloat = 'right';
> }
>
> the DHTML menus on aa.com mispositioned their arrow images (this also
> affects tivocommunity.com, bfcu.com, and anyone else who uses
> webreference's HierMenus DHTML framework).
>
> I also added support for mapping "-khtml-" properties so that they
> could be set/retrieved from JS.
Great! (I'll let Dirk double-check and apply, I don't know CSS).
One other related problem I remember seeing when debugging sites:
when the stylesheet defines "border: 2px", the code turns it into border-left,
border-top, border-right and border-bottom internally, so when the Javascript
code queries for "style.border", it doesn't find it.
Testcase at http://blackie.dk/~dfaure/border-left.html (tested with Mozilla)
Is this something you fixed in Safari already?
(Since it's a CSS problem and not really a JS problem I couldn't really
fix it myself...)
--
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions
More information about the Khtml-devel
mailing list