Re: safari rendering bug: site display not correct



In article <41j4dkF1ejpqlU1@xxxxxxxxxxxxxx>,
Markus Dehmann <markus.dehmann@xxxxxxxxx> wrote:

> I found a safari bug:
>
> Safari cannot display this site correctly:
> http://wahnzeit.libsyn.com/index.php?post_id=38396&comments=on

Given that the page in question is not valid HTML, I am not sure there
is any correct way to display it.

> The last four comments on the page (after the "test\ntest\ntest\n?\n?")
> should not be in bold font anymore. Firefox and Opera do it right, but
> Safari makes everything bold.

Also works that way in Safari for italics, underline and emphasis.
Probably the same for any inline element (although I didn't test them
all).

> One poster in the middle of the page had included a "<b><b><b>" in his
> posting, but did not close the tags. So, everything that follows is
> bold. A later posting tried to fix it, using "</b></b></b>" tags, but
> Safari ignores them.

Safari is obeying a delayed close to inline elements UNTIL it encounters
a new div tag (just closing the existing div does not stop Safari from
returning to normal text display, if it encounters appropriate close
tags).

Looks like it may be a general parsing problem in the tag soup parser.
I tried it with the inline font style elements bold, underline and the
inline phrase element emphasis, none of which are actually supposed to
be used outside the block element they occur within.

Personally I would have thought all browsers should stop displaying them
once the end of the enclosing block element (such as a paragraph) was
reached. However I know that many web pages have done things like put a
single bold tag around multiple paragraphs. So I can see why Safari
(and other browsers) don't just stop doing bold when they get to a new
paragraph. Looks like Safari loses track of non-closed inline elements
when it reaches a new div.

I did try throwing Safari into Standards mode with a HTML 4.01 Strict
Doctype, to see whether the problem was specific to Quirks mode or not.
Seems to be there in both modes.

You probably should report it as a problem. It should be easy to
generate a very short test page demonstrating all forms of the problem.

--
http://www.ericlindsay.com
.



Relevant Pages

  • Re: safari rendering bug: site display not correct
    ... Firefox and Opera do it right, but Safari makes everything bold. ... Also works that way in Safari for italics, ... Safari is obeying a delayed close to inline elements UNTIL it encounters a new div tag. ...
    (comp.sys.mac.apps)
  • How to play .wmv in safari without Flip4Mac
    ... and i want to display that file in Mac OS ... I installed flip4mac first and with that safari displayed the file ... with quicktime componant in the web browser, ... else so that i can direct embed media player in safari browser and then ...
    (microsoft.public.windowsmedia.player.mac)
  • Re: htmldog.com and horizontal scrolling
    ... not display well in Safari 2 on a Mac. ... The container is position: ...
    (alt.html)
  • Re: Annoying Safari Flaw
    ... the bookmarks themselves ... At the end of the Google Search Bar are ... A page (Display a menu for the current page) ... with the problems I've had playing video on Safari (certain sites don't ...
    (rec.arts.sf.fandom)
  • Re: how can I show spaces as spaces, part 2
    ... Adding this instead seems to work better (at least on a limited set of ... Or just use br {display: ... because the HTML is generated by an application ... And br in CSS is ignored by Safari: ...
    (alt.html)