From ahahn@gmx.net Mon May 10 11:58:03 2010 From: Andreas Hahn To: xwiki-users@xwiki.org Subject: [xwiki-users] HTML Macro browser dependent ? Date: Mon, 10 May 2010 11:57:47 +0200 Message-ID: <4BE7D89B.9070502@gmx.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2609168987122239325==" --===============2609168987122239325== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Unless I'm doing something very stupid I'd think the HTML macro shows some weird browser dependent behaviour: {{html}} {{/html}} Works as expected with firefox 3.x / Safari Doesn't work in IE 7/8 and Chrome. The {{html}}-embedded code is missing in the page output for these browsers. When examining the page with Firebug I also noticed that the *listItem* example on http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro renders unexpectedly. Firebug reveals ... ...
Neither nor 'class="star" ' are part of the example source so this example is either a fake or the macro shows undocumented behaviour. IMHO the macro should just write its raw output to the page not depending on any other circuumstances. The macro example page and I guess all of http://code.xwiki.org are looking crippled on IE7 as the content area is clipped. Wiki version is 2.3 M1 thanks Andreas --===============2609168987122239325==-- From vincent@massol.net Mon May 10 12:06:54 2010 From: Vincent Massol To: xwiki-users@xwiki.org Subject: Re: [xwiki-users] HTML Macro browser dependent ? Date: Mon, 10 May 2010 12:06:40 +0200 Message-ID: In-Reply-To: <4BE7D89B.9070502@gmx.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1067705354558470845==" --===============1067705354558470845== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Andreas, On May 10, 2010, at 11:57 AM, Andreas Hahn wrote: > Unless I'm doing something very stupid I'd think the HTML macro shows=20 > some weird browser dependent behaviour: >=20 > {{html}} > > {{/html}} >=20 > Works as expected with firefox 3.x / Safari > Doesn't work in IE 7/8 and Chrome. >=20 > The {{html}}-embedded code is missing in the page output for these browsers. >=20 > When examining the page with Firebug I also noticed that the *listItem*=20 > example on > http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro > renders unexpectedly. >=20 > Firebug reveals > > > ... >
    >
  • listitem>/li> >
> ... > >
>=20 > Neither nor 'class=3D"star" ' are part of the example source so=20 > this example is either a fake or the macro shows undocumented behaviour. >=20 > IMHO the macro should just write its raw output to the page not=20 > depending on any other circuumstances. >=20 > The macro example page and I guess all of > http://code.xwiki.org are looking crippled on IE7 as the content area is=20 > clipped. >=20 > Wiki version is 2.3 M1 * No, the macro is not browser-dependent * HTML *is* browser-dependant * the html macro generates valid XHTML by default so if you introduce an erro= r in your HTML it'll get fixed somehow. For ex in your input above you're mis= sing a closing > * if you don't want valid XHTML you should use clean=3D"false", see http://co= de.xwiki.org/xwiki/bin/view/Macros/HTMLMacro Thanks -Vincent --===============1067705354558470845==-- From ahahn@gmx.net Mon May 10 14:44:35 2010 From: Andreas Hahn To: xwiki-users@xwiki.org Subject: Re: [xwiki-users] HTML Macro browser dependent ? Date: Mon, 10 May 2010 14:44:17 +0200 Message-ID: <4BE7FFA1.8040402@gmx.net> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2714107041225890344==" --===============2714107041225890344== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Vincent, thanks for your fast response. Sure html is wrong. I should have noticed that. thanks again Andreas Vincent Massol schrieb: > Hi Andreas, > > On May 10, 2010, at 11:57 AM, Andreas Hahn wrote: > > =20 >> Unless I'm doing something very stupid I'd think the HTML macro shows=20 >> some weird browser dependent behaviour: >> >> {{html}} >> >> {{/html}} >> >> Works as expected with firefox 3.x / Safari >> Doesn't work in IE 7/8 and Chrome. >> >> The {{html}}-embedded code is missing in the page output for these browser= s. >> >> When examining the page with Firebug I also noticed that the *listItem*=20 >> example on >> http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro >> renders unexpectedly. >> >> Firebug reveals >> >> >> ... >>
    >>
  • listitem>/li> >>
>> ... >> >>
>> >> Neither nor 'class=3D"star" ' are part of the example source so=20 >> this example is either a fake or the macro shows undocumented behaviour. >> >> IMHO the macro should just write its raw output to the page not=20 >> depending on any other circuumstances. >> >> The macro example page and I guess all of >> http://code.xwiki.org are looking crippled on IE7 as the content area is=20 >> clipped. >> >> Wiki version is 2.3 M1 >> =20 > > * No, the macro is not browser-dependent > * HTML *is* browser-dependant > * the html macro generates valid XHTML by default so if you introduce an er= ror in your HTML it'll get fixed somehow. For ex in your input above you're m= issing a closing > > * if you don't want valid XHTML you should use clean=3D"false", see http://= code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro > > Thanks > -Vincent > > _______________________________________________ > users mailing list > users(a)xwiki.org > http://lists.xwiki.org/mailman/listinfo/users > > =20 --===============2714107041225890344==--