Bug 6139 - Having <style after <body causes opera to display the page as a blank page.
Summary: Having <style after <body causes opera to display the page as a blank page.
Status: RESOLVED OLD
Alias: None
Product: Websites
Classification: Unclassified
Component: wiki.mageia.org (show other bugs)
Version: trunk
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Atelier Team
QA Contact:
URL: https://wiki.mageia.org/en/Cauldron
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-28 23:28 CEST by Dave Hodgins
Modified: 2012-06-10 19:35 CEST (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment:


Attachments

Description Dave Hodgins 2012-05-28 23:28:44 CEST
After loading the above page in opera 11.64, the page displays blank.

In order to view the page in opera, I have right click on the page,
select view source (which I have configured to use gedit), then
move the lines from <style> to </style, that occur just after
the <body class=... line, to be before the </head> line.  This seems
to happen with most wiki pages, so I guess there is a template used
to create new pages, that contains this error.

style sections are supposed to be in the head section, not the body section.
Comment 1 Romain d'Alverny 2012-05-28 23:53:18 CEST
(In reply to comment #0)
> style sections are supposed to be in the head section, not the body section.

Indeed. But a browser breaking on this is likely to misrender a lot of sites; actually, that's the first time I hear about a browser that strict. 

Does it break on http://www.mageia.org/en/downloads/ as well?

As for fixing this very point (style in body), agreed. There's a pending update on the navbar that changes that. Or I can push a fix, but not before Wednesday evening.

CC: (none) => rdalverny

Comment 2 Remco Rijnders 2012-05-29 08:00:30 CEST
Dave, would you be willing to file a report for this with Opera?

CC: (none) => anssi.hannula

Comment 3 Dave Hodgins 2012-05-29 09:15:37 CEST
Bug DSK-364780 submitted to opera.

http://www.mageia.org/en/downloads/ displays ok.  Looking at the
source, I'm very surprised, as it also has style after start of
body.  Perhaps the comment in between the body and style tags
triggers the bug in opera.

I mentioned in the bug report to opera that the site
https://wiki.mageia.org/en/Cauldron would likely be fixed
on Wednesday, and included a link to this bug report.

I've gotten used to switching to firefox, for most wiki sites,
and only today took the time to figure out what the problem was.
It isn't only Mageia wiki sites I've had trouble with, and not
all wiki pages on Mageia show the problem.
Comment 4 Romain d'Alverny 2012-05-30 16:04:53 CEST
(In reply to comment #3)
> Bug DSK-364780 submitted to opera.
> 
> http://www.mageia.org/en/downloads/ displays ok. 
> [...]
> It isn't only Mageia wiki sites I've had trouble with, and not
> all wiki pages on Mageia show the problem.

So it's very unlikely that this (style within body, however wrong it is a practice) is the source of the bug.
Comment 5 Dave Hodgins 2012-05-31 00:10:49 CEST
(In reply to comment #4)
> So it's very unlikely that this (style within body, however wrong it is a
> practice) is the source of the bug.

Agreed.  While moving the style into the head section does fix it for this
particular page, figuring out exactly what combination of things triggers
the bug, isn't going to be easy.
Comment 6 Dave Hodgins 2012-05-31 00:12:48 CEST
I also see the same problem, and the same fix works for
https://wiki.mageia.org/en/Testing_procedure_for_libxml2
Comment 7 Dave Hodgins 2012-06-10 19:35:11 CEST
Due to Bug 4797, I had to start with a fresh opera profile, and am no
longer seeing this problem.  I'd been using the same profile since
whatever version of opera was available with Mandrake 10.

Status: NEW => RESOLVED
Resolution: (none) => OLD


Note You need to log in before you can comment on or make changes to this bug.