X Tutup
Skip to content
/ lxml Public

Add inline_style option#180

Merged
scoder merged 2 commits intolxml:masterfrom
chripede:patch-2
Jul 24, 2016
Merged

Add inline_style option#180
scoder merged 2 commits intolxml:masterfrom
chripede:patch-2

Conversation

@chripede
Copy link
Contributor

Currently the style option will remove both style tags and attributes.
This change makes each an option, just like scripts and javascript.

Currently the style option will remove both style tags and attributes. 
This change makes each an option, just like scripts and javascript.
@scoder
Copy link
Member

scoder commented Nov 19, 2015

This breaks both the API and a test. And it adds a new option without testing it. No way I can accept that.

@chripede
Copy link
Contributor Author

Was in a hurry and forgot the tests. I fixed the broken one and added a new one.

@scoder
Copy link
Member

scoder commented Nov 20, 2015

It still breaks the API, though. If you want a new option for such a special case, it shouldn't break all code out there. It should just be a new option.

@chripede
Copy link
Contributor Author

chripede commented Dec 4, 2015

So in order to not break the API, should I move the inline_style into the style and default inline_style to True?

@scoder scoder merged commit 0a43d0b into lxml:master Jul 24, 2016
@scoder
Copy link
Member

scoder commented Jul 24, 2016

I think they should be separate options where the new one falls back to the old one if not provided. d3b73e5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

X Tutup