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:
Unless I'm doing something very stupid I'd think the HTML macro shows some weird browser dependent behaviour:
{{html}} <div id="header"> <a href="/docs/Test/" <span class="someClass">SomeText</span> </a> </div> {{/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 <table> <tbody> ... <ul class="star"> <li>listitem>/li> </ul> ... </tbody> </table>
Neither <tbody> 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
* No, the macro is not browser-dependent * HTML *is* browser-dependant * the html macro generates valid XHTML by default so if you introduce an error in your HTML it'll get fixed somehow. For ex in your input above you're missing a closing > * if you don't want valid XHTML you should use clean="false", see http://code.xwiki.org/xwiki/bin/view/Macros/HTMLMacro
Thanks -Vincent
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users