Hi Gabriel

Le 08/01/2014 21:37, Gabriel Wicke a écrit :
> I'd like to ask you for your input on a change to the DOM spec [1] we
> are considering. The idea is to simplify links by removing the explicit
> mw:WikiLink or mw:ExtLink typeof attributes:
> 
>   <a rel="mw:WikiLink" href="./Main_Page">Main Page</a>
>   <a rel="mw:ExtLink" href="http://example.com";>http://example.com</a>
> 
> would become just
> 
>   <a href="Main_Page">Main Page</a>
>   <a href="http://example.com";>http://example.com</a>
> 
> Reasons for this change are:
> 
> - The external vs. internal link distinction is pretty simple to do
>   with a prefix match on the href.
> 
> - When editing, an internal link can turn into an external one and
>   vice-versa. Editors should not have to deal with updating the typeof
>   to reflect the information already available in the href attribute.
> 
> - The page source will be slightly cleaner and smaller.
> 
> Potential disadvantages we see are
> 
> - For ISBN links [2], we will continue to link to Special:BookSources,
>   which looks internal. Matching on that to identify ISBN links should
>   however not be harder than it is right now.
> 
> Are you currently relying on these typeofs? Do you see other issues with
> this proposed change?

I rely on this information (the "rel" attribute) and this looks to me
like a not so elegant move.

Not clean and not robust, because what we will have to build (to
identify an external link) a not so easy to maintain heuristic.

I fully understand the need to build an efficient solution, I have
myself an old computer, but wouldn't that be a compromise to shorten
"mw:WikiLink" and "mw:ExtLink".

Removing "./" in the href value makes really sense to me.

Emmanuel
-- 
Kiwix - Wikipedia Offline & more
* Web: http://www.kiwix.org
* Twitter: https://twitter.com/KiwixOffline
* more: http://www.kiwix.org/wiki/Communication

_______________________________________________
Wikitext-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitext-l

Reply via email to