[Yanel-dev] where does this shape="rect" come from

Michael Wechner michael.wechner at wyona.com
Sat Jun 18 16:05:56 EDT 2016


Dear Simon

The Yanel website also uses the navigation resource

src/realms/yanel-website/res-configs-repo/data/navigation/menu.xml.yanel-rc

for example

http://www.yanel.org/en/about.html

I think we should first try to understand why

src/resources/navigation/src/java/org/wyona/yanel/impl/resources/navigation/NavigationResource.java

is generating this attribute when the XHTML_STRICT serializer is being used.

Otherwise I agree, that we could make it configurable

Thanks for your pointers

Michael

Am 18.06.16 um 11:12 schrieb simon:
> Dear Michi,
>
> I found the cause:
> if i change
> Serializer serializer =
> SerializerFactory.getSerializer(SerializerFactory.XHTML_STRICT);
> to
> Serializer serializer =
> SerializerFactory.getSerializer(SerializerFactory.XML);
> within the NavigationResource.java
>
> then the shape="rect" are gone.
>
> Probably this should be fixed by making the Serializer configurable.
> What do you think?
>
> Cheers
> Simon
>
> Am 18.06.2016 um 08:43 schrieb simon:
>> Dear Michi,
>>
>> Am 17.06.2016 um 23:39 schrieb Michael Wechner:
>>> Dear Simon
>>>
>>> Can you provide some more details?
>> I just found them in my site: https://www.teil3.ch
>> I found them in http://www.zwischengas.com
>> I did NOT found them on http://wyona.com/de/index.html but on
>> http://wyona.com/de/kontakt.html.
>> It looks like it is found within the navigation.
>>
>> Will have a closer look later.
>>
>> Cheers
>> Simon
>>>
>>> I am not sure whether this is really Yanel, because for example
>>>
>>> view-source:https://www.yulup.com/en/index.html
>>>
>>> also contains links without shape attributes.
>>>
>>> Thanks
>>>
>>> Michael
>>>
>>> Am 17.06.16 um 19:59 schrieb simon:
>>>> Dear all
>>>>
>>>> Why does yanel allways add shape="rect" to a elements?
>>>> <a href="../de/management.html" shape="rect">
>>>>
>>>> w3c validator complains about:
>>>>
>>>> *Error*: The |shape| attribute on the |a| element is obsolete. Use
>>>> |area| instead of |a| for image maps.
>>>>
>>>> Cheers
>>>> Simon
>>>>
>>>>
>>>> -- 
>>>> TEIL3
>>>> Vulkanstrasse 114
>>>> 8048 Zürich
>>>>
>>>> www.teil3.ch
>>>>
>>>>
>>>
>>>
>>>
>>
>>
>> -- 
>> TEIL3
>> Vulkanstrasse 114
>> 8048 Zürich
>>
>> www.teil3.ch
>>
>>
>
>
> -- 
> TEIL3
> Vulkanstrasse 114
> 8048 Zürich
>
> www.teil3.ch
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mx2.wyona.com/pipermail/yanel-development/attachments/20160618/d6b489fa/attachment.html>


More information about the Yanel-development mailing list