@markuplint/html-spec 3.11.1 → 3.12.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 +19 -19
  2. package/package.json +4 -4
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."
@@ -35521,10 +35521,6 @@
35521
35521
  },
35522
35522
  "target": {
35523
35523
  "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
35524
  }
35529
35525
  }
35530
35526
  },
@@ -35706,7 +35702,7 @@
35706
35702
  },
35707
35703
  "attributes": {
35708
35704
  "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."
35705
+ "type": "BaseURL"
35710
35706
  },
35711
35707
  "target": {
35712
35708
  "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."
@@ -37198,7 +37194,7 @@
37198
37194
  }
37199
37195
  },
37200
37196
  "target": {
37201
- "type": "BrowsingContextNameOrKeyword"
37197
+ "type": "NavigableTargetNameOrKeyword"
37202
37198
  }
37203
37199
  }
37204
37200
  },
@@ -37743,7 +37739,7 @@
37743
37739
  "deprecated": true
37744
37740
  },
37745
37741
  "name": {
37746
- "type": "BrowsingContextName"
37742
+ "type": "NavigableTargetName"
37747
37743
  },
37748
37744
  "referrerpolicy": {
37749
37745
  "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 +38493,15 @@
38497
38493
  "condition": ["[type='checkbox' i]", "[type='radio' i]"]
38498
38494
  },
38499
38495
  "dirname": {
38500
- "condition": [":not([type])", "[type='text' i]", "[type='search' i]"]
38496
+ "condition": [
38497
+ ":not([type])",
38498
+ "[type='text' i]",
38499
+ "[type='search' i]",
38500
+ "[type='hidden' i]",
38501
+ "[type='tel' i]",
38502
+ "[type='url' i]",
38503
+ "[type='email' i]"
38504
+ ]
38501
38505
  },
38502
38506
  "disabled": {
38503
38507
  "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 +39032,8 @@
39028
39032
  "blocking": {
39029
39033
  "type": {
39030
39034
  "enum": ["render"]
39031
- }
39035
+ },
39036
+ "condition": "[rel~='stylesheet' i]"
39032
39037
  },
39033
39038
  "charset": {
39034
39039
  "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 +39084,6 @@
39079
39084
  "deprecated": true,
39080
39085
  "nonStandard": true
39081
39086
  },
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
39087
  "referrerpolicy": {
39087
39088
  "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
39089
  },
@@ -39761,7 +39762,7 @@
39761
39762
  "description": "The height of the displayed resource, in CSS pixels. — (Absolute values only. NO percentages)"
39762
39763
  },
39763
39764
  "name": {
39764
- "type": "BrowsingContextName"
39765
+ "type": "NavigableTargetName"
39765
39766
  },
39766
39767
  "standby": {
39767
39768
  "description": "A message that the browser can show while loading the object's implementation and data.",
@@ -40801,8 +40802,7 @@
40801
40802
  "condition": "picture > source"
40802
40803
  },
40803
40804
  "media": {
40804
- "type": "<media-query-list>",
40805
- "condition": "picture > source"
40805
+ "type": "<media-query-list>"
40806
40806
  },
40807
40807
  "sizes": {
40808
40808
  "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.12.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",
20
+ "@markuplint/spec-generator": "3.12.0",
21
21
  "@markuplint/test-tools": "3.6.1"
22
22
  },
23
23
  "dependencies": {
24
- "@markuplint/ml-spec": "3.11.1"
24
+ "@markuplint/ml-spec": "3.12.0"
25
25
  },
26
- "gitHead": "09100b8baa14dd930602daa458197322197c79c2"
26
+ "gitHead": "ef31aef8f2fff319d0f692feead332ec5fc5c7cf"
27
27
  }