@markuplint/html-spec 3.11.1 → 3.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.json +20 -32
  2. package/package.json +5 -5
package/index.json CHANGED
@@ -675,7 +675,7 @@
675
675
  "type": "URL"
676
676
  },
677
677
  "target": {
678
- "type": "BrowsingContextNameOrKeyword",
678
+ "type": "NavigableTargetNameOrKeyword",
679
679
  "condition": "[href]"
680
680
  },
681
681
  "download": {
@@ -838,7 +838,7 @@
838
838
  "type": "Boolean"
839
839
  },
840
840
  "formtarget": {
841
- "type": "BrowsingContextNameOrKeyword"
841
+ "type": "NavigableTargetNameOrKeyword"
842
842
  },
843
843
  "name": {
844
844
  "type": "NoEmptyAny"
@@ -35303,7 +35303,7 @@
35303
35303
  "description": "Causes the browser to treat the linked URL as a download. Can be used with or without a filename value: Without a value, the browser will suggest a filename/extension, generated from various sources: The Content-Disposition HTTP header The final segment in the URL path The media type (from the Content-Type header, the start of a data: URL, or Blob.type for a blob: URL) filename: defining a value suggests it as the filename. / and \\ characters are converted to underscores (_). Filesystems may forbid other characters in filenames, so browsers will adjust the suggested name if necessary. Note: download only works for same-origin URLs, or the blob: and data: schemes. How browsers treat downloads varies by browser, user settings, and other factors. The user may be prompted before a download starts, or the file may be saved automatically, or it may open automatically, either in an external application or in the browser itself. If the Content-Disposition header has different information from the download attribute, resulting behavior may differ: If the header specifies a filename, it takes priority over a filename specified in the download attribute. If the header specifies a disposition of inline, Chrome and Firefox prioritize the attribute and treat it as a download. Old Firefox versions (before 82) prioritize the header and will display the content inline."
35304
35304
  },
35305
35305
  "href": {
35306
- "description": "The URL that the hyperlink points to. Links are not restricted to HTTP-based URLs — they can use any URL scheme supported by browsers: Sections of a page with document fragments Specific text portions with text fragments Pieces of media files with media fragments Telephone numbers with tel: URLs Email addresses with mailto: URLs While web browsers may not support other URL schemes, websites can with registerProtocolHandler()"
35306
+ "description": "The URL that the hyperlink points to. Links are not restricted to HTTP-based URLs — they can use any URL scheme supported by browsers: Sections of a page with document fragments Specific text portions with text fragments Pieces of media files with media fragments Telephone numbers with tel: URLs Email addresses with mailto: URLs SMS text messages with sms: URLs While web browsers may not support other URL schemes, websites can with registerProtocolHandler()"
35307
35307
  },
35308
35308
  "hreflang": {
35309
35309
  "description": "Hints at the human language of the linked URL. No built-in functionality. Allowed values are the same as the global lang attribute."
@@ -35491,18 +35491,6 @@
35491
35491
  "href": {
35492
35492
  "description": "The hyperlink target for the area. Its value is a valid URL. This attribute may be omitted; if so, the <area> element does not represent a hyperlink."
35493
35493
  },
35494
- "hreflang": {
35495
- "description": "Indicates the language of the linked resource. Allowed values are defined by RFC 5646: Tags for Identifying Languages (also known as BCP 47). Use this attribute only if the href attribute is present.",
35496
- "deprecated": true
35497
- },
35498
- "name": {
35499
- "description": "Define a names for the clickable area so that it can be scripted by older browsers.",
35500
- "deprecated": true
35501
- },
35502
- "nohref": {
35503
- "description": "Indicates that no hyperlink exists for the associated area. Note: The nohref attribute is not necessary, as omitting the href attribute is sufficient.",
35504
- "deprecated": true
35505
- },
35506
35494
  "ping": {
35507
35495
  "description": "Contains a space-separated list of URLs to which, when the hyperlink is followed, POST requests with the body PING will be sent by the browser (in the background). Typically used for tracking."
35508
35496
  },
@@ -35521,10 +35509,6 @@
35521
35509
  },
35522
35510
  "target": {
35523
35511
  "description": "A keyword or author-defined name of the browsing context to display the linked resource. The following keywords have special meanings: _self (default): Show the resource in the current browsing context. _blank: Show the resource in a new, unnamed browsing context. _parent: Show the resource in the parent browsing context of the current one, if the current page is inside a frame. If there is no parent, acts the same as _self. _top: Show the resource in the topmost browsing context (the browsing context that is an ancestor of the current one and has no parent). If there is no parent, acts the same as _self. Use this attribute only if the href attribute is present. Note: Setting target=\"_blank\" on <area> elements implicitly provides the same rel behavior as setting rel=\"noopener\" which does not set window.opener. See browser compatibility for support status."
35524
- },
35525
- "type": {
35526
- "description": "Hint for the type of the referenced resource. Ignored by browsers.",
35527
- "deprecated": true
35528
35512
  }
35529
35513
  }
35530
35514
  },
@@ -35706,7 +35690,7 @@
35706
35690
  },
35707
35691
  "attributes": {
35708
35692
  "href": {
35709
- "description": "The base URL to be used throughout the document for relative URLs. Absolute and relative URLs are allowed. data: and javascript: URLs are not allowed."
35693
+ "type": "BaseURL"
35710
35694
  },
35711
35695
  "target": {
35712
35696
  "description": "A keyword or author-defined name of the default browsing context to show the results of navigation from <a>, <area>, or <form> elements without explicit target attributes. The following keywords have special meanings: _self (default): Show the result in the current browsing context. _blank: Show the result in a new, unnamed browsing context. _parent: Show the result in the parent browsing context of the current one, if the current page is inside a frame. If there is no parent, acts the same as _self. _top: Show the result in the topmost browsing context (the browsing context that is an ancestor of the current one and has no parent). If there is no parent, acts the same as _self."
@@ -36666,7 +36650,7 @@
36666
36650
  {
36667
36651
  "name": "dialog",
36668
36652
  "cite": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog",
36669
- "description": "The <dialog> HTML element represents a dialog box or other interactive component, such as a dismissible alert, inspector, or subwindow.",
36653
+ "description": "The <dialog> HTML element represents a modal or non-modal dialog box or other interactive component, such as a dismissible alert, inspector, or subwindow.",
36670
36654
  "categories": ["#flow"],
36671
36655
  "contentModel": {
36672
36656
  "contents": [
@@ -37198,7 +37182,7 @@
37198
37182
  }
37199
37183
  },
37200
37184
  "target": {
37201
- "type": "BrowsingContextNameOrKeyword"
37185
+ "type": "NavigableTargetNameOrKeyword"
37202
37186
  }
37203
37187
  }
37204
37188
  },
@@ -37743,7 +37727,7 @@
37743
37727
  "deprecated": true
37744
37728
  },
37745
37729
  "name": {
37746
- "type": "BrowsingContextName"
37730
+ "type": "NavigableTargetName"
37747
37731
  },
37748
37732
  "referrerpolicy": {
37749
37733
  "description": "Indicates which referrer to send when fetching the frame's resource: no-referrer: The Referer header will not be sent. no-referrer-when-downgrade: The Referer header will not be sent to origins without TLS (HTTPS). origin: The sent referrer will be limited to the origin of the referring page: its scheme, host, and port. origin-when-cross-origin: The referrer sent to other origins will be limited to the scheme, the host, and the port. Navigations on the same origin will still include the path. same-origin: A referrer will be sent for same origin, but cross-origin requests will contain no referrer information. strict-origin: Only send the origin of the document as the referrer when the protocol security level stays the same (HTTPS→HTTPS), but don't send it to a less secure destination (HTTPS→HTTP). strict-origin-when-cross-origin (default): Send a full URL when performing a same-origin request, only send the origin when the protocol security level stays the same (HTTPS→HTTPS), and send no header to a less secure destination (HTTPS→HTTP). unsafe-url: The referrer will include the origin and the path (but not the fragment, password, or username). This value is unsafe, because it leaks origins and paths from TLS-protected resources to insecure origins."
@@ -38497,7 +38481,15 @@
38497
38481
  "condition": ["[type='checkbox' i]", "[type='radio' i]"]
38498
38482
  },
38499
38483
  "dirname": {
38500
- "condition": [":not([type])", "[type='text' i]", "[type='search' i]"]
38484
+ "condition": [
38485
+ ":not([type])",
38486
+ "[type='text' i]",
38487
+ "[type='search' i]",
38488
+ "[type='hidden' i]",
38489
+ "[type='tel' i]",
38490
+ "[type='url' i]",
38491
+ "[type='email' i]"
38492
+ ]
38501
38493
  },
38502
38494
  "disabled": {
38503
38495
  "description": "A Boolean attribute which, if present, indicates that the user should not be able to interact with the input. Disabled inputs are typically rendered with a dimmer color or using some other form of indication that the field is not available for use. Specifically, disabled inputs do not receive the click event, and disabled inputs are not submitted with the form. Note: Although not required by the specification, Firefox will by default persist the dynamic disabled state of an <input> across page loads. Use the autocomplete attribute to control this feature."
@@ -39028,7 +39020,8 @@
39028
39020
  "blocking": {
39029
39021
  "type": {
39030
39022
  "enum": ["render"]
39031
- }
39023
+ },
39024
+ "condition": "[rel~='stylesheet' i]"
39032
39025
  },
39033
39026
  "charset": {
39034
39027
  "description": "This attribute defines the character encoding of the linked resource. The value is a space- and/or comma-delimited list of character sets as defined in RFC 2045. The default value is iso-8859-1. Note: To produce the same effect as this obsolete attribute, use the Content-Type HTTP header on the linked resource.",
@@ -39079,10 +39072,6 @@
39079
39072
  "deprecated": true,
39080
39073
  "nonStandard": true
39081
39074
  },
39082
- "prefetch": {
39083
- "description": "Identifies a resource that might be required by the next navigation and that the user agent should retrieve it. This allows the user agent to respond faster when the resource is requested in the future.",
39084
- "experimental": true
39085
- },
39086
39075
  "referrerpolicy": {
39087
39076
  "description": "A string indicating which referrer to use when fetching the resource: no-referrer means that the Referer header will not be sent. no-referrer-when-downgrade means that no Referer header will be sent when navigating to an origin without TLS (HTTPS). This is a user agent's default behavior, if no policy is otherwise specified. origin means that the referrer will be the origin of the page, which is roughly the scheme, the host, and the port. origin-when-cross-origin means that navigating to other origins will be limited to the scheme, the host, and the port, while navigating on the same origin will include the referrer's path. unsafe-url means that the referrer will include the origin and the path (but not the fragment, password, or username). This case is unsafe because it can leak origins and paths from TLS-protected resources to insecure origins."
39088
39077
  },
@@ -39761,7 +39750,7 @@
39761
39750
  "description": "The height of the displayed resource, in CSS pixels. — (Absolute values only. NO percentages)"
39762
39751
  },
39763
39752
  "name": {
39764
- "type": "BrowsingContextName"
39753
+ "type": "NavigableTargetName"
39765
39754
  },
39766
39755
  "standby": {
39767
39756
  "description": "A message that the browser can show while loading the object's implementation and data.",
@@ -40801,8 +40790,7 @@
40801
40790
  "condition": "picture > source"
40802
40791
  },
40803
40792
  "media": {
40804
- "type": "<media-query-list>",
40805
- "condition": "picture > source"
40793
+ "type": "<media-query-list>"
40806
40794
  },
40807
40795
  "sizes": {
40808
40796
  "condition": "picture > source"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/html-spec",
3
- "version": "3.11.1",
3
+ "version": "3.13.0",
4
4
  "description": "A specification of HTML Living Standard for markuplint",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -17,11 +17,11 @@
17
17
  "gen:prettier": "prettier --write index.json"
18
18
  },
19
19
  "devDependencies": {
20
- "@markuplint/spec-generator": "3.11.1",
21
- "@markuplint/test-tools": "3.6.1"
20
+ "@markuplint/spec-generator": "3.13.0",
21
+ "@markuplint/test-tools": "3.7.0"
22
22
  },
23
23
  "dependencies": {
24
- "@markuplint/ml-spec": "3.11.1"
24
+ "@markuplint/ml-spec": "3.13.0"
25
25
  },
26
- "gitHead": "09100b8baa14dd930602daa458197322197c79c2"
26
+ "gitHead": "e2adbe92c74631af9c98cb816286287f9f983053"
27
27
  }