(HTML) class manipulation shortcuts
Bug #1243600 reported by
Xavier (Open ERP)
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
Wishlist
|
scoder |
Bug Description
lxml.html adds a number of shortcuts for manipulating HTML trees http://
A useful one would be the ability to more easily set and unset classes on elements, e.g. provide a `set`-like interface to the `class` html attribute, possibly extended with a classList-type `toggle(token[, force])`[0] method: although this is probably less fraught with risks than in javascript, class interaction through the string value is not exactly fun.
To post a comment you must log in.
Agreed, would be nice to have.