Hello Jo,
I believe this is illegal according to the HTML5 specification:
http://www.w3.org/html/wg/drafts/html/master/single-page.html#the-a-element
Content
model<http://www.w3.org/html/wg/drafts/html/master/single-page.html#element-dfn-content-model>
:Transparent<http://www.w3.org/html/wg/drafts/html/master/single-page.html#transparent>,
but there must be no interactive
content<http://www.w3.org/html/wg/drafts/html/master/single-page.html#interactive-content-0>descendant.Browsers
'fix' some of these illegal situations by putting the anchors one after the
other. I suppose that is what you see.
BR,
Wim.
2013/4/16 jo gielis <[email protected]>
> I'm having trouble with the following:
>
> final WAnchor first = new WAnchor();
> final WAnchor second = new WAnchor();
> first.addWidget(second);
>
> results in:
>
> <a></a>
> <a></a>
>
> instead of what I expected:
>
> <a>
> <a />
> </a>
>
> Is it intended to behave like this?
>
>
> Best regards,
>
> Jo
>
>
> ------------------------------------------------------------------------------
> Precog is a next-generation analytics platform capable of advanced
> analytics on semi-structured data. The platform includes APIs for building
> apps and a phenomenal toolset for data science. Developers can use
> our toolset for easy data analysis & visualization. Get a free account!
> http://www2.precog.com/precogplatform/slashdotnewsletter
> _______________________________________________
> witty-interest mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/witty-interest
>
>
------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest