-
Notifications
You must be signed in to change notification settings - Fork 576
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
Exclude <script> and <style> from Mojo::DOM text extraction #1502
Conversation
Calling for a vote @mojolicious/core. |
Well, OK, since you insist. @shadowcat-mst votes Monster Raving Loony Party (also +1 for what little it's worth as a non-core contrib but I can't quite bring myself to spoil my ballot entirely) |
I'm neutral to this change. |
I think this would be better if the list of attributes to omit from |
Quick disclaimer, i'm not going to modify this proposal. It is up for vote as is, and anyone is welcome to reuse the code for alternative proposals. |
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 think this is a good idea to bring all_text closer to what would be expected of it.
@CandyAngel This sort of more extensible method could pretty easily be provided by a role or so, just possibly less efficient. |
This change also does not prevent another PR with support for |
This seems like a useful change so I'm +1 on it, I just want it to be user controllable rather than hard-coded, which can be added in the future. |
While in concept I agree with the spirit of this change, in xml mode should tags like script and style handled differently like this? |
I agree, this exclusion should not occur in XML mode. |
Since @Grinnz voted +1, yet raised concerns, i consider this vote failed. I will probably not be working on another attempt. So feel free to reuse whatever you want from this PR. |
This came up on IRC recently, and everyone seemed to agree that excluding
<script>
and<style>
would be the correct behaviour forMojo::DOM::all_text
.