From 3f41b727231fad3a708c043bb72b0028b569fdb0 Mon Sep 17 00:00:00 2001 From: Felipe Mojica Date: Sat, 8 Aug 2026 21:16:57 -0600 Subject: [PATCH] v2.11: arregla tres bugs de la busqueda y amplia los limites MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit La busqueda operaba nodo de texto por nodo de texto sobre el DOM ya coloreado, lo que causaba tres fallos encadenados: 1. Degradacion progresiva (critico): clearSearchMarks reemplazaba cada por un nodo de texto sin fusionar los adyacentes (faltaba normalize()). Cada busqueda fragmentaba el DOM de forma permanente. Reproducido: buscar 'Rayuela' -> 1 resultado; buscar 'y'; buscar 'Rayuela' otra vez -> 0 resultados. 2. Terminos que cruzan colores: ' --- CLAUDE.md | 8 +-- README.md | 28 +++++++--- SECURITY.md | 2 +- docs/GUIA_DOCUMENTACION.md | 4 +- docs/ROADMAP.md | 56 ++++++++++++++++++-- docs/SCOPE.md | 15 ++++-- index.html | 105 ++++++++++++++++++++++++------------- tests.html | 74 ++++++++++++++++++++++++++ 8 files changed, 233 insertions(+), 59 deletions(-) diff --git a/CLAUDE.md b/CLAUDE.md index be8d329..7b147ab 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -50,9 +50,9 @@ CI: `.github/workflows/tests.yml` runs the full suite headless (Playwright + Chr ## Architecture -Everything is in `index.html` (~2475 lines): CSS in `