[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #3047: gb.xml.html XmlElement.GetChildrenByFilter selects incorrect element


http://gambaswiki.org/bugtracker/edit?object=BUG.3047&from=L21haW4-

Comment #5 by T. Lee DAVIDSON:

As .GetChildrenByFilter is dependent on a correct response from .MatchFilter, I have done some deciphering, editing, and testing of gb.xml/src/html/cssfilter.cpp from Master.

I made some changes that seem to fix the following CSS selectors:
element , element
element element
element > element
element + element

I did not test [attribute$="value"] and [attribute*="value"] prior to making the above changes (which should not have affected them), but after found them to be OK. And, the pseudo-element selectors, first-child and last-child, also seem to be fixed with the edits made. Although, I have not done extensive testing.

Attached is a DIFF file and a new, more generic test project.

----------------------------------------------------------------------------

Attachment: cssfilter.diff

Attachment: TestCssMatch-0.0.4.tar.gz



----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----