script tag without type attr prevents future script tags from working

Bug #1122465 reported by catphive
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nXhtml
New
Undecided
Unassigned

Bug Description

Adding a script tag without type attribute prevents script tags further down the document from working. For example:

<script>
// no submode created here
</script>

<script type="text/javascript">
// not javascript mode here either, even though type attribute included
</script>

Happens in eruby-html-mumamo-mode and eruby-nxhtml-mumamo-mode.

Environment: Nhxtml 2.08 and Emacs 24.1.1 started with emacs -Q

Eval this to setup:
(load "~/.emacs.d/ext/nxhtml/autostart.el")

(setq
 mumamo-chunk-coloring 'submode-colored
 indent-region-mode t)
(add-to-list 'auto-mode-alist '("\\.html\\.erb\\'" . eruby-html-mumamo-mode))

As a side note, it would be desirable to have a default mode for script tags that don't include the type="text/javascript" attribute.

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.