-
Notifications
You must be signed in to change notification settings - Fork 569
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
don't remove meaningful empty elements #538
Conversation
case 'textarea': | ||
case 'video': | ||
return false; | ||
case 'script': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't video, audio and iframe act the same way as script? Only be removed when they don't have "src" attr?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was being conservative - but yeah let's go with yours.
Can you think of other tags while we are at this?
@kangax commit amended |
Perhaps |
Assuming |
improve code reuse
Right, added |
... I've just discovered |
Okay, looks like only Netscape and very old Mozilla browers support |
HTML is hard :D On Sun, Mar 6, 2016 at 5:28 PM, Alex Lam S.L. notifications@github.com
|
I'm actually thinking about |
Not sure it's worth adding support for spacer. It's deprecated, no? |
Probably not - it's one of those "no harm, let's throw in the kitchen sink" moment 👻 I'll take it back out then... |
So what are your thoughts on sparing |
That's expected. We should make it very clear in the docs. Ideally, they need to be ignored via config or something. |
I guess that link to your blog post has enough warning signs on it. |
|
👍 |
don't remove meaningful empty elements
#536 mentions
<iframe>
- I've further identified<audio>
and<video>
.