Closed Bug 901666 Opened 12 years ago Closed 12 years ago

Firefox Script Debugger should ignore <script> elements with type="text/html"

Categories

(DevTools :: Debugger, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: steve, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36 Steps to reproduce: Attempted to debug a page that includes a script element with the following markup: <script type="text/html"></script> Actual results: Instead of launching the script debugger to allow debugging of the <script type="text/javascript"> elements and the included script files, the script debugger failed with the message No Javascript on this page If <script> tags have a "type" attribute, it should equal "text/javascript" or "application/javascript". Also scripts must be parsable (syntactically correct). Expected results: Firefox can ignore script elements that have bad javascript (e.g. syntactically incorrect), I can think of no rational justification why the debugger should worry itself about script elements marked with a type that was intended to keep the javascript engine from attempting to parse the script. It should have simply processed all <script type="text/javascript"> elements and ignored all <script type="text/html"> elements.
Component: Untriaged → Developer Tools: Debugger
Can you provide a test page that exhibits this behavior? This one works fine for me: http://htmlpad.org/debugger
You know, oddly enough I am unable to reproduce this error either. I wish I had attached screenshots because the other day I was not able to debug any of my pages that contained "text/html" scripts. The only thing I can think of is that I re-booted my machine over the weekend. Perhaps this is a memory issue. At any rate, I can't repro either.
You know, oddly enough I am unable to reproduce this error either. I wish I had attached screenshots because the other day I was not able to debug any of my pages that contained "text/html" scripts. The only thing I can think of is that I re-booted my machine over the weekend. Perhaps this is a memory issue. At any rate, I can't repro either.
OK, marking as WORKSFORME. Please reopen if you can reproduce it again.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.