Elefind is allowing testers to find any html elements in cnx books with css selector in very short time.
Please consider that Elefind is searching elements inside [data-type="page"] and [data-type="composite-page"]
so you will not be able to find those attributes.
- Update
./books
with.xhtml
files. - Run
./scripts/remove-namespaces ./books/book-name.xhtml
- this is removing namespaces from elements. Ex.<m:math>
is changed to<math>
. If you will omit this step then there will be no way to find those elements. - Update
config.go
- Run
go run main.go config.go limit.go
or build withgo build main.go config.go limit.go
and start with./main
You can pass port as a argument:./main 3001
Web server will start listening at port 3000
/
-> {status: "active"}
/books
-> json list of books from config.go
/element?bookName=Prelagebra&element=[data-type="newline"]
You can use https://github.com/katalysteducation/elefind
for front-end
All css selectors are available +
Find text inside element:
element:hasText(text to search)
Find elements inside other elements:
table:has(img, p)