Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

タイムゾーンオフセット文字列の評価の精度向上 #1481

Open
momdo opened this issue Feb 13, 2024 · 0 comments
Open

タイムゾーンオフセット文字列の評価の精度向上 #1481

momdo opened this issue Feb 13, 2024 · 0 comments

Comments

@momdo
Copy link

momdo commented Feb 13, 2024

  • Markuplint version: 4.1.0
  • Parser lang: HTML
  • Node.js version: 20.11.0
  • OS: Windows

Describe the bug

(Feature Requestが適切かもしれません)

仕様のとおりにタイムゾーンオフセット文字列が評価されていますが、(現時点で)実在しないタイムゾーンオフセット文字列は検出されません。
おそらく厳密な評価は実現困難かと思われます。

仕様:
https://html.spec.whatwg.org/multipage/common-microsyntaxes.html#valid-time-zone-offset-string

Code Example

<time>+2500</time>
<time>+1600</time>
<time>+0123</time>
<time datetime="+2500">+2500</time>
<time datetime="+1600">+1600</time>
<time datetime="+0123">+0123</time>

Steps To Reproduce

  1. Code Exampleに示すような実在しないタイムゾーンオフセット文字列をtime要素またはdatetime属性値で提供します。

The current behavior

それぞれ以下のように出力されます

The expected behavior

おそらく現時点での現存するタイムゾーンオフセットのセットと思われるhttps://en.wikipedia.org/wiki/Time_zoneのみを「正しいもの」と判定するようにします。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants