femtoblogger By jim, 2 months ago
Safari is odd with contentEditable divs. It doesn't assume you will have a pre-formatted div as a container so it puts each line into its own div… sometimes marked with code class, sometimes not.

That makes a mess but is tolerable, until my HTML sanitizer burps out the clean version with newlines between the divs and causes accidental double spacing.

I could rewrite the ->saveHTML() method of the PHP DOMDocument to not put newlines in between divs, but that would give awful looking HTML.

For now I added a function to the sanitizer to remove extra divs from inside code formated divs. It tries to be smart about inserting newline characters, but it may not be smart enough.

Someone should revisit the whole contentEditable thing and specify precisely what is to meant by all of the operations.
The femtoblogger software is being written by Jim Studt. The content of this page is provided by anonymous individuals. If you believe something on this page is innapropriate contact Jim Studt.

Contribute

login
logout
post
create account (12 seconds)
recent comments

Filter

everything
coding
femtoblogger
language
linux

Search

Browsers

googlebot26.9%
IE 616.6%
yahoobot15.7%
Firefox12.2%
msnbot10.8%
hiding6.4%
Safari6.3%
IE 74.1%
Opera0.6%
Chrome0.2%
jeevesbot0.1%
iPhone0.1%
IE 50.0%
unknown0.0%

Archives

2009January1
2008December2
November4
October5
September1
August1
July2
June3
May3
April4
February1
January4
2007December1
November3
October8
September18