ContainsRelRef should not be triggered by anchor links

Đang mở
#47 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
52/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
html, python
Lĩnh vực
backend

Hướng nghiên cứu

Find the validator logic that emits the ContainsRelRef warning and inspect the existing tests covering relative references. Update the behavior so URLs beginning with # are treated as same-document anchors rather than relative resources. Run the relevant validator test suite and confirm that ordinary relative URLs still produce the warning.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

The docs state that relative URLs cannot be fetched by some feed readers that might look for filesystem paths rather than web resources.

Anchor URLs should be acceptable since they should just refer to locations in the current document. Example:

Jump to the <a href="#tldr">TLDR</a> at the bottom.

(I wanted to start a discussion about whether this is a good idea, but all the URLs to the mailing lists in the docs are dead).

Ngôn ngữ chính
Python
Star
135
Fork
67
Merge trung bình
2 ngày 51 phút
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của w3c/feedvalidator

Tất cả issue của w3c/feedvalidator

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.