Closed
Bug 240420
Opened 20 years ago
Closed 20 years ago
<style> elements flub line numbers
Categories
(Core :: DOM: Core & HTML, defect, P2)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla1.8alpha4
People
(Reporter: bzbarsky, Assigned: dbaron)
References
Details
(Whiteboard: [patch])
Attachments
(3 files, 1 obsolete file)
381 bytes,
text/html; charset=UTF-8
|
Details | |
373 bytes,
application/xhtml+xml; charset=UTF-8
|
Details | |
31.84 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
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.
Updated•20 years ago
|
OS: Linux → All
Hardware: PC → All
Assignee | ||
Comment 1•20 years ago
|
||
Assignee | ||
Comment 2•20 years ago
|
||
This fixes HTML style elements. I don't see content sink code for others, so they're harder.
Assignee | ||
Updated•20 years ago
|
Attachment #158256 -
Flags: superreview?(bzbarsky)
Attachment #158256 -
Flags: review?(bzbarsky)
Reporter | ||
Comment 3•20 years ago
|
||
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?
Assignee | ||
Comment 4•20 years ago
|
||
Assignee | ||
Comment 5•20 years ago
|
||
Attachment #158256 -
Attachment is obsolete: true
Assignee | ||
Updated•20 years ago
|
Attachment #158256 -
Flags: superreview?(bzbarsky)
Attachment #158256 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•20 years ago
|
Attachment #158287 -
Flags: superreview?(bzbarsky)
Attachment #158287 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•20 years ago
|
Assignee: general → dbaron
Priority: -- → P2
Whiteboard: [patch]
Target Milestone: --- → mozilla1.8alpha4
Reporter | ||
Comment 6•20 years ago
|
||
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+
Assignee | ||
Comment 7•20 years ago
|
||
Fix checked in to trunk, 2004-09-09 10:32 -0700.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•