Last modified: 2014-09-28 04:19:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T69486, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 67486 - LInks: Add support for self-links
LInks: Add support for self-links
Status: NEW
Product: Parsoid
Classification: Unclassified
token-stream transforms (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Parsoid Team
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-03 18:12 UTC by ssastry
Modified: 2014-09-28 04:19 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description ssastry 2014-07-03 18:12:58 UTC
See https://en.wikipedia.org/wiki/User:Ssastry/VE_Test#Self-link_test and see Parsoid's rendering of the same.

https://meta.wikimedia.org/wiki/Help:Self_link is the documentation.

Causes rendering diffs in https://en.wikipedia.org/wiki/Prairie_Home_Companion -- found via looking at a visual diff.
Comment 1 Gabriel Wicke 2014-07-11 18:06:42 UTC
One issue to consider with self-links is that the page name might not be constant. Flow posts for example are displayed in several contexts including timelines. Users might expect the 'self' to follow the actual page URL.

Originally we considered styling self links with CSS (attribute selectors), similar to red links.
Comment 2 Gabriel Wicke 2014-09-27 21:43:59 UTC
Solution using CSS:

<html><style>
        a[href="test.html"] {
            font-weight: bold;
            color: inherit;
            text-decoration: inherit;
            pointer-events: none;
            cursor: text;
        }
    </style>
    <body>
        Some link to <a href="test.html">test.html</a> 
    </body>
</html>
Comment 3 Gabriel Wicke 2014-09-28 04:19:03 UTC
Proof of concept implemented in https://github.com/gwicke/restbase/commit/6e3856bbce390a4b52c95dcbc4f632d8b8ba4f15.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links