Given the following data-cite (with no path or fragment):
<a data-cite="somespec">Some spec</a>
It would be nice if that was outputted as:
<cite><a href="https://foo.com/whatever-spec">Some spec</a></cite>
I think the place where this needs is around here:
https://github.com/w3c/respec/blob/develop/src/core/data-cite.js#L53
After the link is created, if there is no fragment or path, then the <cite> can wrap <a>.
@yatri1609, any chance you could work on this?
if there is no fragment or path
What does block us from using <cite> with fragments/paths?
What does block us from using with fragments/paths?
Not much. Just that we have a convention of using <a data-cite> for cross refs that use frags and paths.
We could also do:
<cite data-cite="spec">Some Spec</cite>
Which would actually be nice.
Ideally, I'd also like to support:
<a data-cite="payment-request"></a> and <cite data-cite="payment-request"></cite>. Which, automatically includes the title of the spec as the text content. So, they both output exactly the same thing:
<cite><a href="https:/.../w3c/payment-request">Payment Request API</a></cite>
How nice would that be? 馃槏
@marcoscaceres Yes I can work on this one ! But since I'm traveling for visa interview I'll be able to submit the PR by next weekend. Is it fine ?
@yatri1609, yes, that's totally fine.
@yatri1609 Can I work on this, if you haven't started working o this?
@pradeepgangwar, try to only work on one thing at a time. There are plenty of bugs :)
Poking multiple things may lower the response time anyway 馃槅 (...with more notifications in my inbox.)
Sure @marcoscaceres :). Sorry for spamming. :P
Is anyone working on this? if not can I take this as my first contribution @marcoscaceres ?
@coderquill sure, go for it. Please see the developer guide linked from the README to get started.
We should make sure that <div data-cite> never gets converted into <cite>.
@coderquill are you working on it or should I go forward with it ? @marcoscaceres any updates on this ?
@yatri1609 yes, please go ahead. I'm still stuck.
Greetings, @marcoscaceres . I just finished understanding the syntax of Javascript. I'm looking to enhance my development skills as well. I would like to work on this issue under your guidance.
Thank You
@zoyron I am already working on this, you can have a look at some other issue.
Sure, @yatri1609 .
@marcoscaceres Why not when there is any fragment or path? IMO citing with fragment is still citing.
@marcoscaceres Since there was no activity on #2021 for around 22 days so I created a PR #2171. But @yatri1609 created #2173 that is similar to #2171
@yatri1609 Please check before making a PR on an issue so that someone else efforts does not go in vain.