Fix Python – Get HTML source of WebElement in Selenium WebDriver using Python

I’m using the Python bindings to run Selenium WebDriver:
from selenium import webdriver
wd = webdriver.Firefox()

I know I can grab a webelement like so:
elem = wd.find_element_by_css_selector(‘#my-id’)

And I know I can get the full page source with…

But is there a way to get the “element source”?
elem.source # <-- returns the....