Zahymaka
Zahymaka

Reputation: 6621

Webkit render bug

I'm working on a site where these bugs randomly appear in Safari and Chrome:

Safari http://img163.imageshack.us/img163/7860/screenshot20100217at314.jpg

i.e. tags appear not to have been closed off completely. The problem is when I view the source I discover it's completely valid.

Edit Here's the offending HTML which I saved: http://www.pastebin.com/f1e0edd24

Upvotes: 0

Views: 270

Answers (3)

Tom
Tom

Reputation: 30698

In the example you've given, it seems you have a sneaky arrow just before "onclick" like this "> onclick .... >Kusters Rebecca." Hence it displays instead of failing.

This problem would show up in all browsers.

Upvotes: 2

streetparade
streetparade

Reputation: 32888

Try to export all your if else statements from the onclick event handler to a function. Then call this function. That makes the read of the source clearer and makes it easy to debug. However the html may be not valid, somewhere is some attributes not closed correctly. To help further we need the following information. Does the Bug appear on all Browsers?

Upvotes: 1

DigitalZebra
DigitalZebra

Reputation: 41503

Are you SURE it is completely valid? Also, whichever editor you view it in might be hiding something from you. It looks like something got escaped or encoded that shouldn't have been. Take a look at the source for the list item that is bad and compare that to a valid one. Try and find the difference between them.

Also, view the response in Fiddler to analyze the actual response html before it hits the browser. This should help reveal if it is actually the browser or is some escaping/encoding issue like I mentioned before.

Upvotes: 2

Related Questions