Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

After a number of decimal places, nobody gives a damn.


computers / alt.comp.software.firefox / Text fragment directives

SubjectAuthor
* Text fragment directivesDave Roya
+- Text fragment directivesAndy Burns
`- Text fragment directivesDave Roya

1
Text fragment directives

<unbk24$k7pa$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2144&group=alt.comp.software.firefox#2144

  copy link   Newsgroups: alt.comp.software.firefox
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dave@dave123royal.com (Dave Roya)
Newsgroups: alt.comp.software.firefox
Subject: Text fragment directives
Date: Sat, 6 Jan 2024 13:20:04 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 32
Message-ID: <unbk24$k7pa$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sat, 6 Jan 2024 13:20:04 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="a0f2370f7b1eba69685808f3a9c20d35";
logging-data="663338"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/yTNGXoQ4U3G04yg6TKugy"
User-Agent: PyKiN 0.5 (Android)
Cancel-Lock: sha1:G2DOe9kCPAvSRlE8VuaccaQRgH8=
 by: Dave Roya - Sat, 6 Jan 2024 13:20 UTC

As I'm sure you all know, Chrome has a feature to highlight text using a
'text fragment directive', like this
<https://example.com/#:%7E:text=Domain>
I increasing see these, and I always thought that Firefox ignored them.

The other day I came upon this post on the Mudcat music site:
<https://mudcat.org/thread.cfm?threadid=172987#4194599>
with a link to Mudcat post SONGS ABOUT THE CONCERTINA

The poster intended the link to go to anchor songsabouttheconcertina,
which exists. But it doesn't (in Firefox/Android). The presence of the
:~:... part stops Firefox scrolling to the anchor.

(And in Chrome/Android it doesn't highlight the text either, though it
does scroll to the anchor. But if you remove everything after 'Songs' it
scrolls to the highlight and ignores the anchor.)

While investigating this curiosity I found this
<https://bugzilla.mozilla.org/show_bug.cgi?id=1779688>
then
<https://wicg.github.io/scroll-to-text-fragment/>

So it seems Firefox will support these text fragments.

But it's not clear to me whether a link like the the concertina one, which
both scrolls to an anchor and/or highlights text is valid. Section 3.3 of
that wicg link says it's not, but there is such a URL in example 8.

--
(Remove numerics from email address)

Re: Text fragment directives

<kvt5hjF9jl7U1@mid.individual.net>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2145&group=alt.comp.software.firefox#2145

  copy link   Newsgroups: alt.comp.software.firefox
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: usenet@andyburns.uk (Andy Burns)
Newsgroups: alt.comp.software.firefox
Subject: Re: Text fragment directives
Date: Sat, 6 Jan 2024 14:14:10 +0000
Lines: 18
Message-ID: <kvt5hjF9jl7U1@mid.individual.net>
References: <unbk24$k7pa$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: individual.net 2rdtqD6YbsmsfQ2F78pPIgqrKjR4BX6ax/QHVjA+FpcqSUo8Js
Cancel-Lock: sha1:ZnYVeSBzpjc8iHPcMZlI85a8zYg= sha256:h0XBB0E4ipyXj0ca/mKGgYT8j7jZ9bVSLgZU+1NF1GM=
User-Agent: Mozilla Thunderbird
Content-Language: en-GB
In-Reply-To: <unbk24$k7pa$1@dont-email.me>
 by: Andy Burns - Sat, 6 Jan 2024 14:14 UTC

Dave Royal wrote:

> it seems Firefox will support these text fragments.

Seems like a useful idea, when I link to a site (e.g.
legislation.gov.uk) I can be reasonably sure any section within a page
will have an element with an 'id=xxx' attribute that I can use.
Unfortunately most pages don't sprinkle potentially useful id attributes
throughout the content.

MDN documents them

<https://developer.mozilla.org/en-US/docs/Web/Text_fragments#syntax>

But <https://caniuse.com/?search=text%20fragment> just says they're
unofficial and firefox doesn't support it ...

Re: Text fragment directives

<undmj7$10s1e$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/computers/article-flat.php?id=2158&group=alt.comp.software.firefox#2158

  copy link   Newsgroups: alt.comp.software.firefox
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: dave@dave123royal.com (Dave Roya)
Newsgroups: alt.comp.software.firefox
Subject: Re: Text fragment directives
Date: Sun, 7 Jan 2024 08:15:35 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 27
Message-ID: <undmj7$10s1e$1@dont-email.me>
References: <unbk24$k7pa$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 7 Jan 2024 08:15:35 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="d4cd54f345d2cff11d55102d7b2bf247";
logging-data="1077294"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/uBOrXMdFI18ZuV+d8MLcP"
User-Agent: PyKiN 0.5 (Android)
Cancel-Lock: sha1:Xc7KmEcWvhFmJ5P/Zdu7X1ygkXg=
In-Reply-To: <unbk24$k7pa$1@dont-email.me>
 by: Dave Roya - Sun, 7 Jan 2024 08:15 UTC

On 6 Jan 2024 13:20:04 -0000 (UTC) Dave Royal wrote:
>[snip]
>So it seems Firefox will support these text fragments.
>
>But it's not clear to me whether a link like the the concertina one, which
>both scrolls to an anchor and/or highlights text is valid. Section 3.3 of
>that wicg link says it's not, but there is such a URL in example 8.

Having read a lot more of that wicg report I have concluded that having
_both_ a fragment-id and a text fragment directive _is_ valid. The
proposal is that the browser should highlight and scroll to the text
fragment, and scroll to the fragment-id as default - ie. it can't find the
text. (There are other options - eg. highlight _all_ cases of the text and
scroll to the first.)

So the 'correct' behaviour of that concertina link is to highlight and
scroll to 'Subject RE: Any December Songs?<newline>Fr' ('Fr' being the
start of the word 'From'). Chrome doesn't find that (because the 'Fr' is
part of an anchor element I think) and scrolls to the default fragment-id.

The choice of which to scroll to is not mandatory, so Firefox may do it
differently.

--
(Remove numerics from email address)


computers / alt.comp.software.firefox / Text fragment directives

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor