Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

112
Vistas
Preserving specified values in WebMarkupMin library

I'm working on a certain .NET MVC project, in which we use library called WebMarkupMin to minify the frontend code. Problem is, during minification some data is lost/corrupted and that leads to hydration errors in the console. WebMarkupMin allows option to preserve some data from removal during minification, for example we have managed to successfully avoid loss of values from input fields by using the following line of code:

HtmlMinificationManager.Current.MinificationSettings.AddPreservableAttribute("input[value]");

Now I am trying to do the same for certain div element. The div looks like this:

   <div class=react-container data-component-name=Panel
   *Minified code*
   data-server-side-redux-state="" data-server-side-rendered=True data-use-redux=False>

I have so far came up with this:

HtmlMinificationManager.Current.MinificationSettings.AddPreservableAttribute("div[data-server-side-rendered=True]");

...but it doesn't work. Does anyone knows how to change it to make it work?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda