Closed
Bug 387691
Opened 17 years ago
Closed 17 years ago
Don't ship <link> from the body to the head
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: mp3geek, Assigned: mrbkap)
References
()
Details
(Keywords: regression, testcase)
Attachments
(2 files, 2 obsolete files)
293 bytes,
text/html
|
Details | |
7.53 KB,
patch
|
sicking
:
review+
sayrer
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a7pre) Gecko/2007071020 Minefield/3.0a7pre
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a7pre) Gecko/2007071020 Minefield/3.0a7pre
All the main heading fonts are in bright yellow, when viewed in Opera the same fonts are in black. Haven't tested with IE yet.
Reproducible: Always
Steps to Reproduce:
1. Open website
2. View ugly yellow fonts
Actual Results:
Displayed incorrectly
Expected Results:
Should show black fonts?
Comment 1•17 years ago
|
||
It happens because <link> get moved into the head, while in older builds, <style> and <link> got moved into the head.
I guess <link> should also be allowed in the <body>, since IE7 allows that too.
Updated•17 years ago
|
Status: UNCONFIRMED → NEW
Component: General → HTML: Parser
Ever confirmed: true
Keywords: regression,
testcase
Product: Firefox → Core
QA Contact: general → parser
Version: unspecified → Trunk
Updated•17 years ago
|
Flags: blocking1.9?
Comment 2•17 years ago
|
||
Blake, what do you think about this one? 1.9 blocker or not?
Comment 4•17 years ago
|
||
Marking blocker per discussion with mrbkap.
Flags: blocking1.9? → blocking1.9+
Assignee | ||
Comment 5•17 years ago
|
||
This patch make the link parent model match the style parent model.
Attachment #272094 -
Flags: superreview?(jonas)
Attachment #272094 -
Flags: review?(jonas)
Attachment #272094 -
Flags: superreview?(jonas)
Attachment #272094 -
Flags: superreview+
Attachment #272094 -
Flags: review?(jonas)
Attachment #272094 -
Flags: review+
Assignee | ||
Comment 6•17 years ago
|
||
Fix checked into trunk.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Summary: The main article fonts are the wrong colour → Don't ship <link> from the body to the head
Assignee | ||
Comment 7•17 years ago
|
||
Whoops, I had to back this out -- <link> was ending up in the body too much. I'll make a new patch post-haste.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 9•17 years ago
|
||
I was doing just that when I noticed the bug ;-).
Status: REOPENED → ASSIGNED
Assignee | ||
Comment 10•17 years ago
|
||
This makes two changes:
- It adds kPreferHead (compare to kPreferBody) when ensures that <link> and <style> (and maybe <script> at some point) end up in the head if there hasn't been an explicit <body> yet.
- I changed some of the mochitests to reflect the new behavior. As they stand now, the tests assume that this exact bug exists, which seems bad to me.
Attachment #272094 -
Attachment is obsolete: true
Attachment #272253 -
Flags: superreview?(jonas)
Attachment #272253 -
Flags: review?(sayrer)
Attachment #272253 -
Flags: review?(jonas)
Assignee | ||
Comment 11•17 years ago
|
||
I think that this has all of the mochitest stuff set up correctly. I copy/pasted the changed tests into regressions.txt and added the old versions to the exceptions file. I made sure to make small changes to the copy/pasted versions so they don't get ignored as "todo."
I also removed a couple of tabs from the driver script.
Attachment #272253 -
Attachment is obsolete: true
Attachment #272261 -
Flags: superreview?(jst)
Attachment #272261 -
Flags: review?(sayrer)
Attachment #272261 -
Flags: review?(jonas)
Attachment #272253 -
Flags: superreview?(jonas)
Attachment #272253 -
Flags: review?(sayrer)
Attachment #272253 -
Flags: review?(jonas)
Attachment #272261 -
Flags: review?(jonas) → review+
Comment 12•17 years ago
|
||
(In reply to comment #10)
> - It adds kPreferHead (compare to kPreferBody) when ensures that <link> and
> <style> (and maybe <script> at some point) end up in the head if there hasn't
> been an explicit <body> yet.
Just a question: Is html5 scoped style considered at all here?
Even if html5 style's scoped attribute isn't implemented at this point,
perhaps some comments about how it should be handled when implemented
might be appropriate here.
I'm assuming that kPreferHead would be inappropriate for a scoped style.
Not that I'm a reviewer or anything :)
Comment 13•17 years ago
|
||
(In reply to comment #0)
> All the main heading fonts are in bright yellow, when viewed in Opera the same
> fonts are in black. Haven't tested with IE yet.
FWIW, they're showing black in IE7 and Safari 3 Beta (on windows), too.
Assignee | ||
Comment 14•17 years ago
|
||
(In reply to comment #12)
> Just a question: Is html5 scoped style considered at all here?
Not really. The change to not ship <style> out of the body will help with that, but this is really just a compatibility/code simplification change.
> I'm assuming that kPreferHead would be inappropriate for a scoped style.
So, kPreferHead only does something when there has not been any explicit <body> or <frameset>. I haven't looked at what the HTML5 algorithm does in these cases, but I'm more or less trying to restore compatibility with what we used to do.
Updated•17 years ago
|
Attachment #272261 -
Flags: review?(sayrer) → review+
Updated•17 years ago
|
Attachment #272261 -
Flags: superreview?(jst) → superreview+
Assignee | ||
Comment 15•17 years ago
|
||
Fix checked into trunk.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago → 17 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•