Closed Bug 261147 Opened 20 years ago Closed 17 years ago

css error reports confusing line number for style generated by out of line javascript

Categories

(Core :: CSS Parsing and Computation, defect, P5)

x86
Windows XP
defect

Tracking

()

RESOLVED DUPLICATE of bug 389631

People

(Reporter: timeless, Unassigned)

References

()

Details

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8a4) Gecko/20040922 Error: Unknown property 'foopy'. Declaration dropped. Source File: data:text/html,<title>%0d%0acss error reports confusing line number for style generated by out of line javascript </title><style>%0d%0a*{%0d%0a display:block;%0d%0a white-space:pre;%0d%0a border: 1px solid orange;%0d%0a}</style>%0d%0a<script src='data:text/javascript,document.write("&lt;style type=text/css&gt;\n title:before {color: blue; content: \x27 title \x27} script:before {color: blue; content: \x27 script \x27} style:before { color: blue; content: \x27 style \x27 }\n * script,\n * style {\n border: 2px solid green; \n foopy: -test-foopy; \n}%0d%0a&lt;/style&gt;")'> Line: 16 this might be bug 65469 comment 2, but it's hard for me to tell i long ago lost the actual page which generated the related error, mozilla kept crashing as i was building this and some of my other cases.
To make it clear what this bug is about, it's document.writing a <style> element during pageload. We report the "right" line number, but that doesn't match any particular lines in the source, of course.
Summary: css error reports confusing line number for style generated by out of line javascript → css error reports confusing line number for style generated by out of line javascript
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P5
Assignee: dbaron → nobody
QA Contact: ian → style-system
This is an older bug, but there's a bit more descriptive info in the other one.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.