Re: what's currently broken in dillo

Johannes Hofmann <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <[email protected]>
On Sun, Dec 28, 2014 at 10:22:49AM +0100, Johannes Hofmann wrote:
> On Sat, Dec 27, 2014 at 09:51:21PM +0100, Johannes Hofmann wrote:
> > Hi,
> > 
> > On Sat, Dec 27, 2014 at 08:27:41PM +0000, higuita wrote:
> > > Hi!
> > > 
> > > > > 	Look at the food icons in the table:
> > > > > http://dont-starve-game.wikia.com/wiki/Crock_Pot
> > > > > 	but i was looking a wrong example, i don't see the <script>
> > > > > here, just the <noscript>, making this harder to fix
> > > > Yes, it's not clear to me that dillo's doing anything incorrect in that
> > > > example.
> > > 
> > > 	I contacted wikia and they replied with this:
> > > 
> > > Rappy, Dec 27 07:32 AM
> > > 
> > > Hello,
> > > 
> > > Thanks for contacting Wikia. It seems that your browser is also stripping
> > > the CSS that should be supplied when JavaScript doesn't load. This CSS
> > > file
> > > ( http://slot1.images.wikia.nocookie.net/__cb1419252955/common/extensions/wikia/ImageLazyLoad/css/ImageLazyLoadNoScript.css
> > > ) should hide the double image issue you are seeing. 
> > > 
> > > I will be filing a ticket, based on this, with our engineers to see if
> > > enclosing the first image in a <script> tag for these types of browsers
> > > is an option. Thanks for bringing this to our attention.
> > > 
> > > Timothy Collins
> > > Community Technical Support
> > > 
> > > 
> > > 	So should dillo follow this css and we have a bug or is not
> > > supported yet?
> > 
> > The mentioned stylesheet isn't loaded, as it is referenced from the
> > body, not from the head section which is not allowed.
> > See e.g. http://www.w3schools.com/tags/tag_link.asp
> 
> Hm, for some reason firefox with Javascript disabled seems to
> disagree with me. I'll check how firefox loads
> ImageLazyLoadNoScript.css.

Ok, firefox seems to load stylesheets from the body section. See [1]
for a discussion whether this is allowed.
Attached is a small test case that illustrates how dillo and firefox
handle this case differently.

Cheers,
Johannes

[1] http://stackoverflow.com/questions/4957446/load-external-css-file-in-body-tag

_______________________________________________
Dillo-dev mailing list
[email protected]
http://lists.dillo.org/cgi-bin/mailman/listinfo/dillo-dev
test.css (text/css, 29 B)
.red {background-color: red}
load_css.html (text/html, 105 B)
<html>
<body>
<link rel="stylesheet" href="test.css">
<div class="red">hello dillo</div>
</body>
</html>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.