Okay, I hardened CNode up a lot, removed the uneeded CDocument.h/.cpp and integrated it into a new find method in Sigil/src/Misc/GumboInterface.cpp
Also adjusted the test cases in main.cpp to use the new GumboInterface approach.
This should be enough to play around with for a while, while we either use the embedded python interface and css_parser to get a good list of selectors that need to be queried for or we end up writing our own quick and dirty css parser along the lines of QuickParser.cpp approach used for xhtml files.
Last edited by KevinH; 01-03-2021 at 09:48 AM.
|