about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-12-27 15:20:56 -0800
committerEric Wong <normalperson@yhbt.net>2010-12-27 15:20:56 -0800
commit6e76c17a2579c41eb2a557b9ea3b81552a07ad7f (patch)
treec89c64f43bbeba7a5c0508e33e20022f57260fe6
parent5d7910029cc331cd2498f868df1d1e3211994a50 (diff)
downloadwrongdoc-6e76c17a2579c41eb2a557b9ea3b81552a07ad7f.tar.gz
final: kill the "No Search Results" text
It shows up on some browsers that do not support stylesheets
and is confusing.
-rw-r--r--lib/wrongdoc/final.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/wrongdoc/final.rb b/lib/wrongdoc/final.rb
index 7070de8..2b315cd 100644
--- a/lib/wrongdoc/final.rb
+++ b/lib/wrongdoc/final.rb
@@ -41,6 +41,9 @@ class Wrongdoc::Final
     doc.search('div#validator-badges p').each { |x|
       /Validate/i =~ x.content and x.unlink
     }
+
+    # this shows up in browsers that don't do stylesheets
+    doc.search('div#no-class-search-results').each(&unlink)
   end
 
   # since we killed off JavaScript, viewing source isn't possible with