question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove redundant attributes, except input

See original GitHub issue

We use some CSS selectors like input[type=text] and these won’t work with RemoveRedundantAttributes since the type=text is the redundant one. I fixed this by changing the CSS, but do you plan to make these definitions configurable?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Taritsyncommented, Nov 23, 2016

Hello, Adrian!

In WebMarkupMin 2.2.3 solved this problem.

In configuration settings of HTML and XHTML minifiers was added one new property - PreservableAttributeList (default is empty). PreservableAttributeList property contains a comma-separated list of string representations of attribute expressions, that define what attributes can not be removed (e.g. "form[method=get i], input[type], [xmlns]"). Attribute expressions somewhat similar to the CSS Attribute Selectors. There are six varieties of the attribute expressions:

  • [attributeName]
  • tagName[attributeName]
  • [attributeName=attributeValue]
  • tagName[attributeName=attributeValue]
  • [attributeName=attributeValue i]
  • tagName[attributeName=attributeValue i]
0reactions
CumpsDcommented, Jun 4, 2021

Yeah, I read those 😃 Very good, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Removing redundant data from mysql
I want to remove duplicate entries but leaving one of them. For instance, I want to keep the first row but remove 2,3,4,5....
Read more >
Deleting duplicate points except those with different ...
In my point shapefile there are some points at the same coordinates. Some of them have the exact same attributes and some have...
Read more >
Remove Duplicates (RapidMiner Studio Core)
The Remove Duplicates operator removes duplicate examples from an ExampleSet by comparing all examples with each other on the basis of the specified...
Read more >
The Data You Don't Need: Removing Redundant Samples
Remove Redundant Data. Papers such as The 10% You Don't Need follow a two-step procedure to find and remove less informative samples.
Read more >
How to Remove Duplicate Data in SQL
One of the easiest ways to remove duplicate data in SQL is by using the DISTINCT keyword. You can use the DISTINCT keyword...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found