azaslavsky / domJSON

Convert DOM trees into compact JSON objects, and vice versa, as fast as possible.
http://azaslavsky.github.io/domJSON/
Other
126 stars 43 forks source link

Figure out a better API for absolute paths #5

Closed azaslavsky closed 9 years ago

azaslavsky commented 9 years ago

Absolute paths are a little hard to do right now. The new API will probably split absolute paths in styles and attributes into to separate option properties. Absolutes for attributes will be handled with a FieldList type input, which will specify the attributes to perform the path check on.