binarydud/inlinestyler — pull request #15 by JoshMock (2012-09-06 21:41:36+00:00)
Title: BeautifulSoup 4 support + proper selector specificity hierarchy

Sorry, this is kind of a dirty pull request in that it covers more than one thing. We've been using the commits from July in production since, well... July. I just forgot to pull them.

Then I improved the CSS selector (and inline `style` attribute) property prioritization rules and thought, "You know what? Maybe I should actually put this code back where it belongs."

## BeautifulSoup 4 support

Self-explanatory. This whole thing fully runs on BS4 now.

## Pre-existing `style` attributes

If a tag already has a `style` attribute, those CSS properties should take precedence over anything in a `