Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
Bartik theme
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Jul 2010 at 04:54 UTC
Updated:
9 Sep 2010 at 08:40 UTC
from sun's issue here: #849862: Bartik code problems
+++ themes/bartik/scripts/search.js 6 Jul 2010 03:49:00 -0000
@@ -0,0 +1,26 @@
+ Drupal.behaviors.bartik = {
+ attach: function(context) {
This JS behavior effectively is http://drupal.org/project/compact_forms in a core theme. You will quickly find out that the code used here does not work in all browsers/platforms/versions. The issue queue of aforementioned project holds more detailed debugging information.
Comments
Comment #1
sunJust subscribing for now...
Comment #2
ericduran commentedJust a thought. How about replacing the javascript with the new placeholder attribute and then writing some fallback javascript code if the browser doesn't support placeholder.
Comment #3
sunThe placeholder attribute is invalid (does not validate) for the document type Bartik is using. Second, even if it would validate, the JavaScript issues would remain the same for all other browsers.
Comment #4
Jeff Burnz commentedI think we can marked this as fixed since search.js has been removed (although I cant find the commit where that happened).