script type attribute must use double quotes

Bug #578610 reported by Perry Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nXhtml
Fix Committed
Medium
Unassigned

Bug Description

The tag: <script type="text/javascript">
works but the tag: <script type='text/javascript'>
does not.

Here is my diff to fix it.
svn diff
Index: util/mumamo-fun.el
===================================================================
--- util/mumamo-fun.el (revision 189)
+++ util/mumamo-fun.el (working copy)
@@ -573,12 +573,13 @@
       (0+ space)
       "="
       (0+ space)
- ?\"
+ ;;?\"
       ;;(or "text" "application")
       ;;"/"
       ;;(or "javascript" "ecmascript")
- "text/javascript"
- ?\"
+ ;;"text/javascript"
+ ;;?\"
+ (or "\'text/javascript\'" "\"text/javascript\"")
       (0+ (not (any ">")))
       ">"
       ;; FIX-ME: Commented out because of bug in Emacs

Revision history for this message
lborgman (lennart-borgman) wrote :

Thanks Perry. Fixed now in the new nXhtml beta 2.09 I just uploaded.

Changed in nxhtml:
importance: Undecided → Medium
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.