[Webkit-unassigned] [Bug 10846] New: exceptions from XHTML/SVG <script> tags don't show the right line numbers

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Wed Sep 13 14:14:51 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=10846

           Summary: exceptions from XHTML/SVG <script> tags don't show the
                    right line numbers
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Keywords: SVGHitList
          Severity: normal
          Priority: P3
         Component: XML
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: macdome at opendarwin.org


exceptions from XHTML/SVG <script> tags don't show the right line numbers

This is why:

XMLTokenizer::endElementNs() contains a:
            m_view->frame()->executeScript(0, scriptCode);

call, notice how it fails to pass the correct base line number.

Compare that with the HTML tokenizer, which correctly passes the line number.

We'll have to steal the line number out of:

m_context->input->line when we hit a <script> start tag, and then use that when
we actually execute the script.

It shouldn't be too hard.

We might just consider adding a m_startLineNumber member into HTMLScriptElement
and SVGScriptElement for simplicity of both tokenizers/parsers.

Adding to the SVG hitlist as this makes SVGs very hard to debug in Safari.


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list