I need to get the surrounding DOM node from a selected text. How do I do that with the Firefox Add-on SDK? 
Or is there any other possibility that I can use in my extension?

E.g. (the selected is uppercase)
`<b class='foo'>here is SELected text</b>`

Aim is to get the class-name.