Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
search.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 May 2008 at 16:04 UTC
Updated:
19 Sep 2009 at 10:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
douggreen commentedIt appears that drupal_add_js inline is not doing this, and I think it should. So a first step, is to get our own HTML to write the javascript inside an HTML comment.
Comment #2
douggreen commentedAlthough W3C says this works, this blog says that it doesn't. And the patch seems to break javascript on FF2. Guess it's back to just ignoring this in indexing.
Comment #3
douggreen commentedThis method (<!-- -->) does work, ignore comment #2. The attached patch fixes the problem inherent in drupal_add_js, and adds a test case.
Comment #4
lilou commentedCNW since #158992: Inline JavaScript is XHTML invalid commit.
Comment #5
douggreen commentedIs this still an issue?
Comment #6
sreynen commentedBecause #158992: Inline JavaScript is XHTML invalid already comments out JS (the suggested solution here), I don't believe there's anything left to do on this issue.
Comment #7
klausiJap, that should be fixed now.