Re: [whatwg/url] Refusing a mix of numeric-only and BIDI domains (#543)

Anne, I believe your conclusion in your first message is correct. That is,
if a domain name contains any R, AL, or AN character then by condition 1,
none of its labels can start with an EN character, eg [0-9].

But as you say, the wording of the paragraph XX is appears odd:

In a domain name consisting of only LDH labels (as defined in the
      Definitions document [RFC5890
<https://www.rfc-editor.org/rfc/rfc5890>]) and labels that satisfy the
rule,
      the requirements of Section 3
<https://www.rfc-editor.org/rfc/rfc5893.html#section-3> are satisfied
as long as a label
      that starts with an ASCII digit does not come after a
      right-to-left label.


After all, 5890 defines the following.

The term "LDH code point" is defined in this document to refer to the
   code points associated with ASCII letters (Unicode code points
   0041..005A and 0061..007A), digits (0030..0039), and the hyphen-minus
   (U+002D).


That means that a domain name "domain name consisting of only LDH
labels" can't have any right-to-left labels. So it is by definition
always true for such a domain name that "as long as a label that
starts with an ASCII digit does not come after a right-to-left label."
because there can be no right-to-left labels in such a domain name.





On Mon, Feb 6, 2023 at 5:40 AM Anne van Kesteren ***@***.***>
wrote:

> @alvestrand <https://github.com/alvestrand> how does AND work for LTR
> labels solely consisting of EN code points? They would violate The Bidi
> Rule.
>
> —
> Reply to this email directly, view it on GitHub
> <https://github.com/whatwg/url/issues/543#issuecomment-1419100570>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACJLEMBCIM4QFYTTF7CNVELWWD5N3ANCNFSM4RKZDPDA>
> .
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
>


-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/543#issuecomment-1420087291

You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/url/issues/543/1420087291@github.com>

Received on Tuesday, 7 February 2023 02:14:11 UTC