hi, im trying to find a practical way of json'izing html... so far i'v put these test functions together:
http://pastie.org/472149 they work ok for most simple html i'v thrown at it so far. the primary snag iv found is it doesnt serialize text inside elements... :( i tried $(element).get('text'), but that returns text from all child nodes. does anyone have any ideas how to include text-nodes in the serialization? any other comments are welcome.. for all i know i could have tackled this thing the wrong way round altogether. cheers.
