Closed Bug 240420 Opened 20 years ago Closed 20 years ago

<style> elements flub line numbers

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.8alpha4

People

(Reporter: bzbarsky, Assigned: dbaron)

References

Details

(Whiteboard: [patch])

Attachments

(3 files, 1 obsolete file)

When a <style> element's script (inline script) is parsed, the first line of the
script is treated as line 1 instead of being treated as whatever line it
actually is in the source file.  These elements should do what <script> elements
do, probably (and we'll need some changes to nsICSSLoader and nsICSSParser to
pass the numbers along, of course).  <svg:style> would need to be fixed too,
naturally.

This is something we need for CSS error reporting, basically.
OS: Linux → All
Hardware: PC → All
Attached patch patch for HTML style elements (obsolete) — Splinter Review
This fixes HTML style elements.  I don't see content sink code for others, so
they're harder.
Attachment #158256 - Flags: superreview?(bzbarsky)
Attachment #158256 - Flags: review?(bzbarsky)
There's code in the XML content sink, no?  Look in
nsXMLContentSink::CreateElement (and search for InitStyleLinkElement)?

The patch looks pretty good and changing the XML sink accordingly should be
simple.  Want to do that and I'll mark reviews?
Attached patch patchSplinter Review
Attachment #158256 - Attachment is obsolete: true
Attachment #158256 - Flags: superreview?(bzbarsky)
Attachment #158256 - Flags: review?(bzbarsky)
Attachment #158287 - Flags: superreview?(bzbarsky)
Attachment #158287 - Flags: review?(bzbarsky)
Assignee: general → dbaron
Priority: -- → P2
Whiteboard: [patch]
Target Milestone: --- → mozilla1.8alpha4
Comment on attachment 158287 [details] [diff] [review]
patch

r+sr=bzbarsky
Attachment #158287 - Flags: superreview?(bzbarsky)
Attachment #158287 - Flags: superreview+
Attachment #158287 - Flags: review?(bzbarsky)
Attachment #158287 - Flags: review+
Fix checked in to trunk, 2004-09-09 10:32 -0700.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: