Hey Tim, I absolutely agree that changing the Youtube embed code is not user friendly, but I wanted to stay as close to xhtml as possible. However, if the customer doesn't care about the code being xhtml and it works in , why should I... Thanks for your patch, I'll add it to the next version of the HTMLCleaner. I was thinking of making the DTD location configurable so you don't have to compile your own version of it if you want to extend the DTD or use a completely different one.
Xinha uses different code for IE and other browsers for the simple reason that IE interprets Javascript in a different way. I did read that Xinha had problem with the embed tag in IE [1]. [1] http://xinha.webfactional.com/ticket/287 Regards, Jasha Joachimsthal www.onehippo.com Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA 94952-3329 +1 (707) 773-4646 PS, New-Zealand must rule the Oceanian league since Australia went to Asia > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of toolman > Sent: dinsdag 10 juni 2008 10:14 > To: Hippo CMS development public mailinglist > Subject: RE: [HippoCMS-dev] Relaxing XHTML > restrictionsinhtmlarea/xinha/htmlcleaner etc. > > Hehe well no one should be using IE anyway ! (friends dont > let friends use IE, I always say) but unfortunately I need to > make this work on IE, so I'll continue hacking away. > > Its definitely a client (browser) side issue, so maybe > htmlarea/xinha have different code paths for IE and Mozilla? > > When I know, the mail list will know, anyway. so cheers, and > Holland Hup! (Yay, 3-0! Sorry SourceSense lads, you guys lost > :P ) That onsoranje site is awesome, isnt it? Whoever > developed that must know what they are doing... ;) > - > Tim Taylor > JTeam > email: [EMAIL PROTECTED] > > > On Tue, 2008-06-10 at 09:02 +0200, Arje Cahn wrote: > > Hi Tim, > > > > Thanks for your ongoing research! :) > > I just realized that Jasha is on vacation this week > (watching soccer and clicking around on www.onsoranje.nl I > guess), so please don't feel sad if he's not answering right now. > > > > If this works out in IE, I guess it would be a great fix > for Hippo CMS 6! > > > > Arjé > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] > > > [mailto:[EMAIL PROTECTED] On Behalf Of > > > toolman > > > Sent: maandag 9 juni 2008 12:26 > > > To: hippo-mailing-list > > > Subject: [HippoCMS-dev] Relaxing XHTML restrictions > > > inhtmlarea/xinha/htmlcleaner etc. > > > > > > Hey everybody; > > > > > > Jasha (from Hippo) recently put up a "how to" on getting YouTube > > > videos into the CMS. You can see that article here: > > > > > > http://blogs.hippo.nl/jasha/2008/05/how_to_add_youtube_video_i > > > n_hi_1.html > > > > > > Thakn you for posting this, however it falls short in my > opinion, as > > > you need to modify the copy-n-paste html snippet that youtube > > > provides in the right panel. The long and short is that > the embed > > > tag is not part of the XHTML spec. > > > > > > Our users don't want to mess about with HTML any more then > > > absolutely necessary, so I have found a solution to this! > > > First off, this is not Hippo endorse (yet?) so I can't make any > > > guarantees about it - but it works for me :) > > > > > > The basic plan is to use a modified XHTML dtd that has > the desired > > > tags. > > > I used one sourced here: > > > > > > http://www.yoyodesign.org/doc/dtd/xhtml1-embed.en.html > > > > > > I checked out the htmlcleaner project from here: > > > > > > http://svn.hippocms.org/repos/hippo/hippo-cocoon-extensions/ta > > > gs/Release_HTMLCLEANER_v1_01_01/ > > > > > > and modified > > > nl.hippo.cocoon.htmlcleaner.XhtmlDescriptorBuilder to > know about the > > > third DTD choice. (approx line 45). I also had to add a > > > project.properties file that pointed to the (moved - > > > 301) maven repo. > > > The content of that file is: > > > > > > maven.repo.remote=http://repository.atlassian.com,http://mirro > > > rs.ibiblio.org/pub/mirrors/maven,http://www.ibiblio.org/maven > > > > > > > > > I then removed the reference to common-project in the > maven pom.xml, > > > and it built the JAR (maven clean jar) fine. This > replaces the one > > > use by the CMS - you can update the CMS pom and insert > this jar into > > > your own repo, or manually replace it in "/cocoon/WEB-INF/lib". > > > > > > Then change yout htmlcleanerconfig.xml to allow all the required > > > tags/attributes (embed, object etc.) and it works.. > > > in FireFox. > > > > > > IE still seems to be stripping content (client side!), so I'm > > > working on why that is ATM. Anyone got any ideas why xinha is > > > acting differently on IE? I'm wondering if IE is doing > some kind of > > > XHTML check/parse of its own.. > > > > > > > > > Cheers, > > > > > > > > > -- > > > Tim Taylor > > > JTeam > > > email: [EMAIL PROTECTED] > > > > > > ******************************************** > > > Hippocms-dev: Hippo CMS development public mailinglist > > > > > ******************************************** > > Hippocms-dev: Hippo CMS development public mailinglist > > > ******************************************** > Hippocms-dev: Hippo CMS development public mailinglist > ******************************************** Hippocms-dev: Hippo CMS development public mailinglist
