From: Bjoern H. <der...@gm...> - 2003-08-20 06:03:01
|
Hi, The following small addition to CSS::SAC helps to find the subject of the current selector. This is basically a workaround for a SAC limitation, Conditions don't know which selector they are attached to. This functionality is required for the ToXPath extension. Could we maintain this in CVS? How/Where? Or could CSS::SAC provide this functionality natively? sub CSS::SAC::Selector::Sibling::GetElement { shift->SiblingSelector->GetElement } sub CSS::SAC::Selector::Descendant::GetElement { shift->SimpleSelector->GetElement } sub CSS::SAC::Selector::Conditional::GetElement { shift->SimpleSelector->GetElement } sub CSS::SAC::Selector::Element::GetElement { shift } regards. |