├── content ├── fr │ └── html │ │ ├── contributors.md │ │ ├── reference │ │ └── elements │ │ │ ├── contributors.md │ │ │ ├── video │ │ │ ├── attributes │ │ │ │ ├── loop.md │ │ │ │ ├── src.md │ │ │ │ ├── controls.md │ │ │ │ ├── playsinline.md │ │ │ │ ├── muted.md │ │ │ │ ├── poster.md │ │ │ │ ├── width.md │ │ │ │ ├── height.md │ │ │ │ ├── autoplay.md │ │ │ │ ├── preload.md │ │ │ │ └── crossorigin.md │ │ │ ├── examples │ │ │ │ ├── exemple-avec-plusieurs-sources.md │ │ │ │ └── exemple-simple.md │ │ │ └── contributors.md │ │ │ ├── abbr │ │ │ ├── examples │ │ │ │ ├── baliser-une-abréviation.md │ │ │ │ ├── fournir-une-forme-étendue.md │ │ │ │ ├── mettre-en-forme-une-abréviation.md │ │ │ │ └── définir-une-abréviation.md │ │ │ └── contributors.md │ │ │ └── elements.md │ │ ├── related_content │ │ └── html.yaml │ │ └── HTML.md ├── en-US │ ├── html │ │ ├── contributors.md │ │ ├── reference │ │ │ └── elements │ │ │ │ ├── contributors.md │ │ │ │ ├── body │ │ │ │ ├── attributes │ │ │ │ │ ├── onblur.md │ │ │ │ │ ├── onfocus.md │ │ │ │ │ ├── onload.md │ │ │ │ │ ├── onresize.md │ │ │ │ │ ├── onerror.md │ │ │ │ │ ├── onredo.md │ │ │ │ │ ├── onundo.md │ │ │ │ │ ├── onunload.md │ │ │ │ │ ├── onstorage.md │ │ │ │ │ ├── onmessage.md │ │ │ │ │ ├── onoffline.md │ │ │ │ │ ├── ononline.md │ │ │ │ │ ├── onafterprint.md │ │ │ │ │ ├── onpopstate.md │ │ │ │ │ ├── onbeforeunload.md │ │ │ │ │ ├── onbeforeprint.md │ │ │ │ │ ├── onlanguagechange.md │ │ │ │ │ └── onhashchange.md │ │ │ │ ├── examples │ │ │ │ │ └── simple-example.md │ │ │ │ ├── body.md │ │ │ │ └── contributors.md │ │ │ │ ├── video │ │ │ │ ├── attributes │ │ │ │ │ ├── loop.md │ │ │ │ │ ├── src.md │ │ │ │ │ ├── controls.md │ │ │ │ │ ├── poster.md │ │ │ │ │ ├── muted.md │ │ │ │ │ ├── width.md │ │ │ │ │ ├── height.md │ │ │ │ │ ├── playsinline.md │ │ │ │ │ ├── autoplay.md │ │ │ │ │ ├── preload.md │ │ │ │ │ └── crossorigin.md │ │ │ │ └── examples │ │ │ │ │ ├── simple-example.md │ │ │ │ │ └── multiple-sources-example.md │ │ │ │ ├── elements.md │ │ │ │ ├── input │ │ │ │ ├── attributes │ │ │ │ │ ├── type.md │ │ │ │ │ ├── value-checkbox.md │ │ │ │ │ ├── form.md │ │ │ │ │ ├── required.md │ │ │ │ │ ├── readonly.md │ │ │ │ │ ├── disabled.md │ │ │ │ │ ├── readonly-checkbox.md │ │ │ │ │ ├── autofocus.md │ │ │ │ │ ├── value.md │ │ │ │ │ ├── checked.md │ │ │ │ │ └── name.md │ │ │ │ └── examples │ │ │ │ │ ├── Styling_input_elements.md │ │ │ │ │ └── Custom_error_messages.md │ │ │ │ ├── input-button │ │ │ │ ├── contributors.md │ │ │ │ ├── examples │ │ │ │ │ ├── A_simple_button.md │ │ │ │ │ ├── Adding_keyboard_shortcuts_to_buttons.md │ │ │ │ │ └── Disabling_a_button.md │ │ │ │ └── input-button.md │ │ │ │ └── article │ │ │ │ ├── contributors.md │ │ │ │ └── examples │ │ │ │ └── simple-article-example.md │ │ └── guides │ │ │ ├── Guides.yaml │ │ │ ├── Block-level_elements │ │ │ └── examples │ │ │ │ └── Block-level_example.md │ │ │ ├── Inline_elements │ │ │ └── examples │ │ │ │ ├── Inline.md │ │ │ │ └── Block-level.md │ │ │ ├── Microdata │ │ │ └── examples │ │ │ │ └── Microdata_example.md │ │ │ └── Applying_color │ │ │ └── examples │ │ │ └── picking-a-color.md │ ├── javascript │ │ ├── reference │ │ │ └── classes │ │ │ │ ├── map │ │ │ │ ├── contributors.md │ │ │ │ ├── map │ │ │ │ │ ├── contributors.md │ │ │ │ │ ├── examples │ │ │ │ │ │ └── simple-example.md │ │ │ │ │ └── Map.md │ │ │ │ ├── instance_methods │ │ │ │ │ ├── get │ │ │ │ │ │ ├── contributors.md │ │ │ │ │ │ ├── examples │ │ │ │ │ │ │ └── simple-example.md │ │ │ │ │ │ └── get.md │ │ │ │ │ ├── has │ │ │ │ │ │ ├── contributors.md │ │ │ │ │ │ ├── examples │ │ │ │ │ │ │ └── simple-example.md │ │ │ │ │ │ └── has.md │ │ │ │ │ ├── set │ │ │ │ │ │ ├── contributors.md │ │ │ │ │ │ ├── examples │ │ │ │ │ │ │ └── simple-example.md │ │ │ │ │ │ └── set.md │ │ │ │ │ ├── delete │ │ │ │ │ │ ├── contributors.md │ │ │ │ │ │ ├── examples │ │ │ │ │ │ │ └── simple-example.md │ │ │ │ │ │ └── delete.md │ │ │ │ │ ├── foreach │ │ │ │ │ │ ├── contributors.md │ │ │ │ │ │ ├── examples │ │ │ │ │ │ │ └── simple-example.md │ │ │ │ │ │ └── forEach.md │ │ │ │ │ └── keys │ │ │ │ │ │ ├── contributors.md │ │ │ │ │ │ ├── examples │ │ │ │ │ │ └── simple-example.md │ │ │ │ │ │ └── keys.md │ │ │ │ ├── examples │ │ │ │ │ └── simple-example.md │ │ │ │ └── Map.md │ │ │ │ └── bigint │ │ │ │ ├── contributors.md │ │ │ │ ├── bigint │ │ │ │ ├── contributors.md │ │ │ │ ├── examples │ │ │ │ │ └── construct.md │ │ │ │ └── BigInt.md │ │ │ │ ├── static_methods │ │ │ │ ├── asintn │ │ │ │ │ ├── contributors.md │ │ │ │ │ ├── examples │ │ │ │ │ │ └── 64-bit-ranges.md │ │ │ │ │ └── asIntN.md │ │ │ │ └── asuintn │ │ │ │ │ ├── contributors.md │ │ │ │ │ ├── examples │ │ │ │ │ └── 64-bit-ranges.md │ │ │ │ │ └── asUintN.md │ │ │ │ ├── instance_methods │ │ │ │ ├── tostring │ │ │ │ │ ├── contributors.md │ │ │ │ │ └── examples │ │ │ │ │ │ ├── using-tostring.md │ │ │ │ │ │ └── negative-zero-bigint.md │ │ │ │ ├── valueof │ │ │ │ │ ├── contributors.md │ │ │ │ │ ├── examples │ │ │ │ │ │ └── using-valueof.md │ │ │ │ │ └── valueOf.md │ │ │ │ └── tolocalestring │ │ │ │ │ ├── contributors.md │ │ │ │ │ └── examples │ │ │ │ │ ├── using-tolocalestring.md │ │ │ │ │ ├── using-options.md │ │ │ │ │ └── using-locales.md │ │ │ │ └── examples │ │ │ │ └── calculating_primes.md │ │ └── guide │ │ │ ├── Guide │ │ │ ├── Functions │ │ │ │ ├── contributors.json │ │ │ │ └── Functions.md │ │ │ ├── Grammar_and_types │ │ │ │ ├── contributors.json │ │ │ │ └── Grammar_and_types.md │ │ │ ├── Details_of_the_Object_Model │ │ │ │ ├── contributors.md │ │ │ │ └── Details_of_the_Object_Model.md │ │ │ ├── Expressions_and_Operators │ │ │ │ ├── contributors.json │ │ │ │ └── Expressions_and_Operators.md │ │ │ └── Control_flow_and_error_handling │ │ │ │ ├── contributors.md │ │ │ │ └── Control_flow_and_error_handling.md │ │ │ └── javascript_guide.yaml │ ├── learn │ │ ├── javascript │ │ │ ├── Objects │ │ │ │ └── Objects.md │ │ │ ├── First_steps │ │ │ │ └── First_steps.md │ │ │ └── Building_blocks │ │ │ │ └── Building_blocks.md │ │ ├── html │ │ │ ├── Introduction_to_HTML │ │ │ │ ├── Introduction_to_HTML.md │ │ │ │ ├── Debugging_HTML │ │ │ │ │ └── Debugging_HTML.md │ │ │ │ ├── Getting_started │ │ │ │ │ └── Getting_started.md │ │ │ │ ├── Creating_hyperlinks │ │ │ │ │ └── Creating_hyperlinks.md │ │ │ │ ├── Marking_up_a_letter │ │ │ │ │ └── Marking_up_a_letter.md │ │ │ │ ├── HTML_text_fundamentals │ │ │ │ │ └── HTML_text_fundamentals.md │ │ │ │ ├── Advanced_text_formatting │ │ │ │ │ └── Advanced_text_formatting.md │ │ │ │ ├── The_head_metadata_in_HTML │ │ │ │ │ └── The_head_metadata_in_HTML.md │ │ │ │ ├── Structuring_a_page_of_content │ │ │ │ │ └── Structuring_a_page_of_content.md │ │ │ │ └── Document_and_website_structure │ │ │ │ │ └── Document_and_website_structure.md │ │ │ └── Introduction_to_HTML.yaml │ │ └── getting_started_with_the_web │ │ │ └── JavaScript_basics │ │ │ └── JavaScript_basics.md │ └── related_content │ │ ├── html.yaml │ │ └── javascript.yaml ├── data │ └── specifications.yaml └── LICENSE.md ├── .gitignore ├── project-docs └── javascript-linter-spec.md ├── recipes ├── landing-page.yaml ├── guide.yaml ├── css-keyword.yaml ├── css-media-feature.yaml ├── javascript-error.yaml ├── css-at-rule.yaml ├── css-function.yaml ├── javascript-property.yaml ├── css-data-type.yaml ├── css-selector.yaml ├── javascript-method.yaml ├── javascript-constructor.yaml ├── javascript-language-feature.yaml ├── css-at-rule-descriptor.yaml ├── css-property.yaml ├── javascript-namespace.yaml ├── css-shorthand-property.yaml ├── html-element.yaml ├── javascript-class.yaml └── html-input-element.yaml ├── scripts ├── scraper-ng │ ├── rate-limiter.js │ ├── rules │ │ ├── html-require-recipe-ingredients │ │ │ ├── ingredient-handlers │ │ │ │ ├── data-constituent-properties.js │ │ │ │ ├── data-permitted-properties.js │ │ │ │ ├── data-browser-compatibility.js │ │ │ │ ├── data-specifications.js │ │ │ │ ├── data-class-members.js │ │ │ │ ├── data-formal-definition.js │ │ │ │ ├── prose-star.js │ │ │ │ ├── data-formal-syntax.js │ │ │ │ ├── prose-short-description.js │ │ │ │ └── data-examples.js │ │ │ └── index.js │ │ ├── html-no-macros.js │ │ ├── file-require-recipe.js │ │ └── html-warn-unknown-headings.js │ ├── test │ │ ├── javascript-constructor.test.js │ │ ├── framework │ │ │ └── jest.setup.js │ │ ├── javascript-constructor.html │ │ ├── ingredient-data.browser_compatibility.test.js │ │ ├── ingredient-data.formal_definition.test.js │ │ ├── README.md │ │ ├── html-require-ingredient-order.test.js │ │ └── ingredient-data.formal_syntax.test.js │ ├── mdn-url.js │ ├── normalize-macro-name.js │ ├── plugins │ │ ├── index-tree.js │ │ ├── load-recipes.js │ │ └── kuma-metadata.js │ ├── preset.js │ └── url-to-vfile.js ├── build-json │ ├── constants.js │ ├── resolve-bcd.js │ ├── resolve-contributors.js │ ├── markdown-converter.js │ ├── compose-interactive-example.js │ ├── build-specs.js │ ├── related-content.js │ ├── build-guide-page-json.js │ ├── build-json.js │ ├── compose-examples.js │ └── slice-prose.js ├── scraper │ ├── process-macros │ │ ├── process-compat.js │ │ ├── process-interactive-example.js │ │ └── extract-macro-calls.js │ ├── to-markdown.js │ ├── code.js │ └── clean-html.js ├── linter │ ├── walk-docs.js │ ├── plugins │ │ ├── yaml-loader.js │ │ ├── deprecated-sections.js │ │ ├── slugify-sections.js │ │ ├── required-frontmatter.js │ │ ├── missing-sections.js │ │ ├── valid-recipes.js │ │ └── valid-specs.js │ ├── collect-recipes.js │ └── index.js └── ci │ └── git.js ├── .prettierignore ├── .travis.yml ├── .eslintrc.js ├── CODE_OF_CONDUCT.md └── .spelling /content/fr/html/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/html/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/fr/html/reference/elements/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/map/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/guide/Guide/Functions/contributors.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/bigint/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/map/map/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/guide/Guide/Grammar_and_types/contributors.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/bigint/bigint/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/guide/Guide/Details_of_the_Object_Model/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/guide/Guide/Expressions_and_Operators/contributors.json: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/map/instance_methods/get/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/map/instance_methods/has/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/map/instance_methods/set/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/guide/Guide/Control_flow_and_error_handling/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/bigint/static_methods/asintn/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/bigint/static_methods/asuintn/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/map/instance_methods/delete/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/map/instance_methods/foreach/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/map/instance_methods/keys/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Local node installation 2 | node_modules/ 3 | packaged 4 | npm-debug.log 5 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/bigint/instance_methods/tostring/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/bigint/instance_methods/valueof/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/bigint/instance_methods/tolocalestring/contributors.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /project-docs/javascript-linter-spec.md: -------------------------------------------------------------------------------- 1 | This file is now maintained as [linter-spec.md](linter-spec.md). 2 | -------------------------------------------------------------------------------- /recipes/landing-page.yaml: -------------------------------------------------------------------------------- 1 | data: 2 | - title 3 | - short_title? 4 | - mdn_url 5 | body: 6 | - prose.description? 7 | - data.link_lists 8 | -------------------------------------------------------------------------------- /scripts/scraper-ng/rate-limiter.js: -------------------------------------------------------------------------------- 1 | const { RateLimit } = require("async-sema"); 2 | 3 | module.exports = RateLimit(16, { uniformDistribution: true }); 4 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/bigint/bigint/examples/construct.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Creating a BigInt 3 | --- 4 | ```js 5 | BigInt(123); 6 | // 123n 7 | ``` 8 | -------------------------------------------------------------------------------- /recipes/guide.yaml: -------------------------------------------------------------------------------- 1 | # The recipe for guide pages doesn't specify anything in the body, because guide 2 | # pages are unstructured. 3 | data: 4 | - title 5 | - short_title? 6 | - mdn_url 7 | body: [] 8 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | # Backup files 2 | *~ 3 | 4 | # Scripts in the root 5 | /*.js 6 | 7 | # Specific files 8 | /package.json 9 | 10 | # exclude these directories 11 | /content/ 12 | /node_modules/ 13 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/map/examples/simple-example.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Simple example 3 | --- 4 | ```js 5 | let myMap = new Map([ 6 | [1, 'one'], 7 | [2, 'two'], 8 | [3, 'three'], 9 | ]) 10 | ``` 11 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/bigint/instance_methods/valueof/examples/using-valueof.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Using valueof 3 | --- 4 | ```js 5 | typeof Object(1n); // object 6 | typeof Object(1n).valueOf(); // bigint 7 | ``` 8 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/map/map/examples/simple-example.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Simple example 3 | --- 4 | ```js 5 | let myMap = new Map([ 6 | [1, 'one'], 7 | [2, 'two'], 8 | [3, 'three'], 9 | ]) 10 | ``` 11 | -------------------------------------------------------------------------------- /content/en-US/javascript/guide/Guide/Functions/Functions.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'Functions' 3 | mdn_url: /en-US/docs/Web/JavaScript/Guide/Functions 4 | related_content: /related_content/javascript.yaml 5 | recipe: guide 6 | --- 7 | (no content yet) 8 | -------------------------------------------------------------------------------- /content/en-US/learn/javascript/Objects/Objects.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'Introducing JavaScript objects' 3 | mdn_url: /en-US/docs/Learn/JavaScript/Objects 4 | related_content: /related_content/javascript.yaml 5 | recipe: guide 6 | --- 7 | (no content yet) 8 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/attributes/onblur.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.body.onblur 3 | --- 4 | 5 | # `onblur` 6 | 7 | Function to call when the document loses focus. 8 | 9 | ## Type 10 | 11 | Function 12 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/map/instance_methods/delete/examples/simple-example.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Simple example 3 | --- 4 | ```js 5 | let myMap = new Map([ 6 | [1, 'one'], 7 | [2, 'two'], 8 | [3, 'three'], 9 | ]) 10 | ``` 11 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/map/instance_methods/foreach/examples/simple-example.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Simple example 3 | --- 4 | ```js 5 | let myMap = new Map([ 6 | [1, 'one'], 7 | [2, 'two'], 8 | [3, 'three'], 9 | ]) 10 | ``` 11 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/map/instance_methods/get/examples/simple-example.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Simple example 3 | --- 4 | ```js 5 | let myMap = new Map([ 6 | [1, 'one'], 7 | [2, 'two'], 8 | [3, 'three'], 9 | ]) 10 | ``` 11 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/map/instance_methods/has/examples/simple-example.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Simple example 3 | --- 4 | ```js 5 | let myMap = new Map([ 6 | [1, 'one'], 7 | [2, 'two'], 8 | [3, 'three'], 9 | ]) 10 | ``` 11 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/map/instance_methods/keys/examples/simple-example.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Simple example 3 | --- 4 | ```js 5 | let myMap = new Map([ 6 | [1, 'one'], 7 | [2, 'two'], 8 | [3, 'three'], 9 | ]) 10 | ``` 11 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/map/instance_methods/set/examples/simple-example.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Simple example 3 | --- 4 | ```js 5 | let myMap = new Map([ 6 | [1, 'one'], 7 | [2, 'two'], 8 | [3, 'three'], 9 | ]) 10 | ``` 11 | -------------------------------------------------------------------------------- /content/en-US/learn/javascript/First_steps/First_steps.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'JavaScript First Steps' 3 | mdn_url: /en-US/docs/Learn/JavaScript/First_steps 4 | related_content: /related_content/javascript.yaml 5 | recipe: guide 6 | --- 7 | (no content yet) 8 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/attributes/onfocus.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.body.onfocus 3 | --- 4 | 5 | # `onfocus` 6 | 7 | Function to call when the document receives focus. 8 | 9 | ## Type 10 | 11 | Function 12 | -------------------------------------------------------------------------------- /content/en-US/learn/html/Introduction_to_HTML/Introduction_to_HTML.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Introduction to HTML 3 | mdn_url: /en-US/docs/Learn/HTML/Introduction_to_HTML 4 | related_content: /related_content/html.yaml 5 | recipe: guide 6 | --- 7 | some content here 8 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/attributes/onload.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.body.onload 3 | --- 4 | 5 | # `onload` 6 | 7 | Function to call when the document has finished loading. 8 | 9 | ## Type 10 | 11 | Function 12 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/attributes/onresize.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.body.onresize 3 | --- 4 | 5 | # `onresize` 6 | 7 | Function to call when the document has been resized. 8 | 9 | ## Type 10 | 11 | Function 12 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/examples/simple-example.md: -------------------------------------------------------------------------------- 1 | --- 2 | --- 3 | ```html 4 | 5 |
6 |This is a paragraph
10 | 11 | 12 | ``` 13 | -------------------------------------------------------------------------------- /scripts/build-json/constants.js: -------------------------------------------------------------------------------- 1 | const path = require("path"); 2 | 3 | // Root of the whole stumptown-content. 4 | // To be used instead of process.cwd() 5 | const ROOT = path.join(__dirname, "..", ".."); 6 | 7 | module.exports = { 8 | ROOT, 9 | }; 10 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/attributes/onerror.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.body.onerror 3 | --- 4 | 5 | # `onerror` 6 | 7 | Function to call when the document fails to load properly. 8 | 9 | ## Type 10 | 11 | Function 12 | -------------------------------------------------------------------------------- /content/en-US/learn/javascript/Building_blocks/Building_blocks.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'JavaScript building blocks' 3 | mdn_url: /en-US/docs/Learn/JavaScript/Building_blocks 4 | related_content: /related_content/javascript.yaml 5 | recipe: guide 6 | --- 7 | (no content yet) 8 | -------------------------------------------------------------------------------- /content/en-US/javascript/guide/javascript_guide.yaml: -------------------------------------------------------------------------------- 1 | title: JavaScript Guide 2 | chapters: 3 | - Guide/Grammar_and_types 4 | - Guide/Control_flow_and_error_handling 5 | - Guide/Functions 6 | - Guide/Expressions_and_Operators 7 | - Guide/Details_of_the_Object_Model 8 | -------------------------------------------------------------------------------- /content/en-US/javascript/guide/Guide/Grammar_and_types/Grammar_and_types.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'Grammar and types' 3 | mdn_url: /en-US/docs/Web/JavaScript/Guide/Grammar_and_types 4 | related_content: /related_content/javascript.yaml 5 | recipe: guide 6 | --- 7 | (no content yet) 8 | -------------------------------------------------------------------------------- /content/en-US/learn/html/Introduction_to_HTML/Debugging_HTML/Debugging_HTML.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Debugging HTML 3 | mdn_url: /en-US/docs/Learn/HTML/Introduction_to_HTML/Debugging_HTML 4 | related_content: /related_content/html.yaml 5 | recipe: guide 6 | --- 7 | some content here 8 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/attributes/onredo.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.body.onredo 3 | --- 4 | 5 | # `onredo` 6 | 7 | Function to call when the user has moved forward in undo transaction history. 8 | 9 | ## Type 10 | 11 | Function 12 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/attributes/onundo.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.body.onundo 3 | --- 4 | 5 | # `onundo` 6 | 7 | Function to call when the user has moved backward in undo transaction history. 8 | 9 | ## Type 10 | 11 | Function 12 | -------------------------------------------------------------------------------- /recipes/css-keyword.yaml: -------------------------------------------------------------------------------- 1 | data: 2 | - title 3 | - short_title? 4 | - mdn_url 5 | body: 6 | - prose.short_description 7 | - prose.description? 8 | - prose.* 9 | - data.examples 10 | - data.specifications 11 | - data.browser_compatibility 12 | - prose.see_also 13 | -------------------------------------------------------------------------------- /recipes/css-media-feature.yaml: -------------------------------------------------------------------------------- 1 | data: 2 | - title 3 | - short_title? 4 | - mdn_url 5 | body: 6 | - prose.short_description 7 | - prose.syntax 8 | - prose.* 9 | - data.examples 10 | - data.specifications 11 | - data.browser_compatibility 12 | - prose.see_also 13 | -------------------------------------------------------------------------------- /content/en-US/learn/html/Introduction_to_HTML/Getting_started/Getting_started.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Getting started with HTML 3 | mdn_url: /en-US/docs/Learn/HTML/Introduction_to_HTML/Getting_started 4 | related_content: /related_content/html.yaml 5 | recipe: guide 6 | --- 7 | some content here 8 | -------------------------------------------------------------------------------- /content/en-US/learn/html/Introduction_to_HTML/Creating_hyperlinks/Creating_hyperlinks.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Creating hyperlinks 3 | mdn_url: /en-US/docs/Learn/HTML/Introduction_to_HTML/Creating_hyperlinks 4 | related_content: /related_content/html.yaml 5 | recipe: guide 6 | --- 7 | some content here 8 | -------------------------------------------------------------------------------- /content/en-US/learn/html/Introduction_to_HTML/Marking_up_a_letter/Marking_up_a_letter.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Marking up a letter 3 | mdn_url: /en-US/docs/Learn/HTML/Introduction_to_HTML/Marking_up_a_letter 4 | related_content: /related_content/html.yaml 5 | recipe: guide 6 | --- 7 | some content here 8 | -------------------------------------------------------------------------------- /content/en-US/learn/getting_started_with_the_web/JavaScript_basics/JavaScript_basics.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'JavaScript basics' 3 | mdn_url: /en-US/docs/Learn/Getting_started_with_the_web/JavaScript_basics 4 | related_content: /related_content/javascript.yaml 5 | recipe: guide 6 | --- 7 | (no content yet) 8 | -------------------------------------------------------------------------------- /content/en-US/javascript/guide/Guide/Expressions_and_Operators/Expressions_and_Operators.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'Expressions and operators' 3 | mdn_url: /en-US/docs/Web/JavaScript/Guide/Expressions_and_Operators 4 | related_content: /related_content/javascript.yaml 5 | recipe: guide 6 | --- 7 | (no content yet) 8 | -------------------------------------------------------------------------------- /content/en-US/learn/html/Introduction_to_HTML/HTML_text_fundamentals/HTML_text_fundamentals.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: HTML text fundamentals 3 | mdn_url: /en-US/docs/Learn/HTML/Introduction_to_HTML/HTML_text_fundamentals 4 | related_content: /related_content/html.yaml 5 | recipe: guide 6 | --- 7 | some content here 8 | -------------------------------------------------------------------------------- /content/en-US/javascript/guide/Guide/Details_of_the_Object_Model/Details_of_the_Object_Model.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'Details of the object model' 3 | mdn_url: /en-US/docs/Web/JavaScript/Guide/Details_of_the_Object_Model 4 | related_content: /related_content/javascript.yaml 5 | recipe: guide 6 | --- 7 | (no content yet) 8 | -------------------------------------------------------------------------------- /content/en-US/learn/html/Introduction_to_HTML/Advanced_text_formatting/Advanced_text_formatting.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Advanced text formatting 3 | mdn_url: /en-US/docs/Learn/HTML/Introduction_to_HTML/Advanced_text_formatting 4 | related_content: /related_content/html.yaml 5 | recipe: guide 6 | --- 7 | some content here 8 | -------------------------------------------------------------------------------- /recipes/javascript-error.yaml: -------------------------------------------------------------------------------- 1 | related_content: related_content/javascript.yaml 2 | data: 3 | - title 4 | - short_title? 5 | - mdn_url 6 | body: 7 | - prose.short_description 8 | - prose.message 9 | - prose.error_type 10 | - prose.what_went_wrong 11 | - data.examples 12 | - prose.see_also 13 | -------------------------------------------------------------------------------- /content/en-US/javascript/guide/Guide/Control_flow_and_error_handling/Control_flow_and_error_handling.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: 'Control flow and error handling' 3 | mdn_url: /en-US/docs/Web/JavaScript/Guide/Control_flow_and_error_handling 4 | related_content: /related_content/javascript.yaml 5 | recipe: guide 6 | --- 7 | (no content yet) 8 | -------------------------------------------------------------------------------- /content/en-US/learn/html/Introduction_to_HTML/The_head_metadata_in_HTML/The_head_metadata_in_HTML.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: What’s in the head? Metadata in HTML 3 | mdn_url: /en-US/docs/Learn/HTML/Introduction_to_HTML/The_head_metadata_in_HTML 4 | related_content: /related_content/html.yaml 5 | recipe: guide 6 | --- 7 | some content here 8 | -------------------------------------------------------------------------------- /content/en-US/learn/html/Introduction_to_HTML/Structuring_a_page_of_content/Structuring_a_page_of_content.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Structuring a page of content 3 | mdn_url: /en-US/docs/Learn/HTML/Introduction_to_HTML/Structuring_a_page_of_content 4 | related_content: /related_content/html.yaml 5 | recipe: guide 6 | --- 7 | some content here 8 | -------------------------------------------------------------------------------- /scripts/build-json/resolve-bcd.js: -------------------------------------------------------------------------------- 1 | const bcd = require("mdn-browser-compat-data"); 2 | 3 | function packageBCD(query) { 4 | let data = query.split(".").reduce(function (prev, curr) { 5 | return prev ? prev[curr] : undefined; 6 | }, bcd); 7 | return data; 8 | } 9 | 10 | module.exports = { 11 | packageBCD, 12 | }; 13 | -------------------------------------------------------------------------------- /content/en-US/learn/html/Introduction_to_HTML/Document_and_website_structure/Document_and_website_structure.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Document and website structure 3 | mdn_url: /en-US/docs/Learn/HTML/Introduction_to_HTML/Document_and_website_structure 4 | related_content: /related_content/html.yaml 5 | recipe: guide 6 | --- 7 | some content here 8 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/bigint/instance_methods/tostring/examples/using-tostring.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Using toString 3 | --- 4 | ```js 5 | 17n.toString(); // '17' 6 | 66n.toString(2); // '1000010' 7 | 254n.toString(16); // 'fe' 8 | -10n.toString(2); // -1010' 9 | -0xffn.toString(2); // '-11111111' 10 | ``` 11 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/attributes/onunload.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.body.onunload 3 | specifications: https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onunload 4 | --- 5 | 6 | # `onunload` 7 | 8 | Function to call when the document is going away. 9 | 10 | ## Type 11 | 12 | Function 13 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/attributes/onstorage.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.body.onstorage 3 | specifications: https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onstorage 4 | --- 5 | 6 | # `onstorage` 7 | 8 | Function to call when the storage area has changed. 9 | 10 | ## Type 11 | 12 | Function 13 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: stable 3 | cache: npm 4 | branches: 5 | only: 6 | - master 7 | 8 | script: 9 | - npm run ci-checks 10 | - npm test 11 | # Note, in a near future we're going to want to build-json for *everything* 12 | # and not just the 'html' section. 13 | - npm run build-json html 14 | - npm run mdn-sitemap-compare 15 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/attributes/onmessage.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.body.onmessage 3 | specifications: https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onmessage 4 | --- 5 | 6 | # `onmessage` 7 | 8 | Function to call when the document has received a message. 9 | 10 | ## Type 11 | 12 | Function 13 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/attributes/onoffline.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.body.onoffline 3 | specifications: https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onoffline 4 | --- 5 | 6 | # `onoffline` 7 | 8 | Function to call when network communication has failed. 9 | 10 | ## Type 11 | 12 | Function 13 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/attributes/ononline.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.body.ononline 3 | specifications: https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-ononline 4 | --- 5 | 6 | # `ononline` 7 | 8 | Function to call when network communication has been restored. 9 | 10 | ## Type 11 | 12 | Function 13 | -------------------------------------------------------------------------------- /content/fr/html/reference/elements/video/attributes/loop.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.video.loop 3 | specifications: https://html.spec.whatwg.org/multipage/media.html#attr-media-loop 4 | --- 5 | 6 | # `loop` 7 | 8 | Un attribut booléen qui, lorsqu'il est spécifié, indique que la vidéo doit être lue en boucle. 9 | 10 | ## Type 11 | 12 | Booléen 13 | -------------------------------------------------------------------------------- /recipes/css-at-rule.yaml: -------------------------------------------------------------------------------- 1 | data: 2 | - title 3 | - short_title? 4 | - mdn_url 5 | body: 6 | - prose.short_description 7 | - prose.syntax 8 | - prose.description? 9 | - prose.accessibility_concerns? 10 | - prose.* 11 | - data.formal_syntax 12 | - data.examples 13 | - data.specifications 14 | - data.browser_compatibility 15 | - prose.see_also 16 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/attributes/onafterprint.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.body.onafterprint 3 | specifications: https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onafterprint 4 | --- 5 | 6 | # `onafterprint` 7 | 8 | Function to call after the user has printed the document. 9 | 10 | ## Type 11 | 12 | Function 13 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/attributes/onpopstate.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.body.onpopstate 3 | specifications: https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onpopstate 4 | --- 5 | 6 | # `onpopstate` 7 | 8 | Function to call when the user has navigated session history. 9 | 10 | ## Type 11 | 12 | Function 13 | -------------------------------------------------------------------------------- /recipes/css-function.yaml: -------------------------------------------------------------------------------- 1 | data: 2 | - title 3 | - short_title? 4 | - mdn_url 5 | body: 6 | - prose.short_description 7 | - data.interactive_example? 8 | - prose.syntax 9 | - prose.description? 10 | - prose.accessibility_concerns? 11 | - prose.* 12 | - data.examples 13 | - data.specifications 14 | - data.browser_compatibility 15 | - prose.see_also 16 | -------------------------------------------------------------------------------- /recipes/javascript-property.yaml: -------------------------------------------------------------------------------- 1 | related_content: related_content/javascript.yaml 2 | data: 3 | - title 4 | - short_title? 5 | - mdn_url 6 | body: 7 | - prose.short_description 8 | - data.interactive_example? 9 | - prose.description? 10 | - prose.* 11 | - data.examples 12 | - data.specifications 13 | - data.browser_compatibility 14 | - prose.see_also 15 | -------------------------------------------------------------------------------- /recipes/css-data-type.yaml: -------------------------------------------------------------------------------- 1 | data: 2 | - title 3 | - short_title? 4 | - mdn_url 5 | body: 6 | - prose.short_description 7 | - data.interactive_example? 8 | - prose.syntax 9 | - prose.description? 10 | - prose.accessibility_concerns? 11 | - prose.* 12 | - data.examples 13 | - data.specifications 14 | - data.browser_compatibility 15 | - prose.see_also 16 | -------------------------------------------------------------------------------- /recipes/css-selector.yaml: -------------------------------------------------------------------------------- 1 | data: 2 | - title 3 | - short_title? 4 | - mdn_url 5 | body: 6 | - prose.short_description 7 | - prose.syntax 8 | - prose.description? 9 | - data.permitted_properties? 10 | - prose.accessibility_concerns? 11 | - prose.* 12 | - data.examples 13 | - data.specifications 14 | - data.browser_compatibility 15 | - prose.see_also 16 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/attributes/onbeforeunload.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.body.onbeforeunload 3 | specifications: https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onbeforeunload 4 | --- 5 | 6 | # `onbeforeunload` 7 | 8 | Function to call when the document is about to be unloaded. 9 | 10 | ## Type 11 | 12 | Function 13 | -------------------------------------------------------------------------------- /content/fr/html/reference/elements/abbr/examples/baliser-une-abréviation.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Baliser une abréviation sémantiquement 3 | width: 672 4 | height: 192 5 | --- 6 | Pour signaler une abréviation sans fournir la forme étendue ou une description, il suffit d'utiliser `` sans aucun attribut. 7 | 8 | ```html 9 |Utiliser HTML, c'est rigolo !
10 | ``` 11 | -------------------------------------------------------------------------------- /scripts/build-json/resolve-contributors.js: -------------------------------------------------------------------------------- 1 | const fs = require("fs"); 2 | 3 | const markdown = require("./markdown-converter"); 4 | 5 | function packageContributors(contributorsPath) { 6 | const contributorsMD = fs.readFileSync(contributorsPath, "utf8"); 7 | return markdown.markdownToHTML(contributorsMD); 8 | } 9 | 10 | module.exports = { 11 | packageContributors, 12 | }; 13 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/attributes/onbeforeprint.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.body.onbeforeprint 3 | specifications: https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onbeforeprint 4 | --- 5 | 6 | # `onbeforeprint` 7 | 8 | Function to call when the user requests printing of the document. 9 | 10 | ## Type 11 | 12 | Function 13 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/attributes/onlanguagechange.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.body.onlanguagechange 3 | specifications: https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onlanguagechange 4 | --- 5 | 6 | # `onlanguagechange` 7 | 8 | Function to call when the preferred languages changed. 9 | 10 | ## Type 11 | 12 | Function 13 | -------------------------------------------------------------------------------- /content/fr/html/reference/elements/elements.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: HTML elements 3 | mdn_url: /fr/docs/Web/HTML/Element 4 | recipe: landing-page 5 | related_content: /related_content/html.yaml 6 | link_lists: 7 | - title: Index des éléments HTML 8 | directory: "/content/fr/html/reference/elements" 9 | --- 10 | 11 | ## Aperçu 12 | 13 | Cette page énumère l'ensemble des éléments HTML. 14 | -------------------------------------------------------------------------------- /content/en-US/related_content/html.yaml: -------------------------------------------------------------------------------- 1 | # HTML sidebar 2 | - title: Learn HTML 3 | children: 4 | - chapter_list: "/content/en-US/learn/html/Introduction_to_HTML.yaml" 5 | - title: Guides 6 | children: 7 | - chapter_list: "/content/en-US/html/guides/Guides.yaml" 8 | - title: Reference 9 | children: 10 | - title: Elements 11 | directory: "/content/en-US/html/reference/elements" 12 | -------------------------------------------------------------------------------- /content/fr/html/related_content/html.yaml: -------------------------------------------------------------------------------- 1 | # HTML sidebar 2 | - title: Learn HTML 3 | children: 4 | - chapter_list: "/content/en-US/learn/html/Introduction_to_HTML.yaml" 5 | - title: Guides 6 | children: 7 | - chapter_list: "/content/en-US/html/guides/Guides.yaml" 8 | - title: Reference 9 | children: 10 | - title: Elements 11 | directory: "/content/fr/html/reference/elements" 12 | -------------------------------------------------------------------------------- /recipes/javascript-method.yaml: -------------------------------------------------------------------------------- 1 | related_content: related_content/javascript.yaml 2 | data: 3 | - title 4 | - short_title? 5 | - mdn_url 6 | body: 7 | - prose.short_description 8 | - data.interactive_example? 9 | - prose.syntax 10 | - prose.description? 11 | - prose.* 12 | - data.examples 13 | - data.specifications 14 | - data.browser_compatibility 15 | - prose.see_also 16 | -------------------------------------------------------------------------------- /content/en-US/html/guides/Guides.yaml: -------------------------------------------------------------------------------- 1 | title: Guides 2 | chapters: 3 | - Block-level_elements 4 | - Inline_elements 5 | - Link_types 6 | - Applying_color 7 | - Date_and_time_formats 8 | - Preloading_content 9 | - CORS_enabled_image 10 | - DASH_Adaptive_Streaming_for_HTML_5_Video 11 | - Microdata 12 | - microformats 13 | - Quirks_Mode_and_Standards_Mode 14 | -------------------------------------------------------------------------------- /recipes/javascript-constructor.yaml: -------------------------------------------------------------------------------- 1 | related_content: related_content/javascript.yaml 2 | data: 3 | - title 4 | - short_title? 5 | - mdn_url 6 | body: 7 | - prose.short_description 8 | - data.interactive_example? 9 | - prose.syntax 10 | - prose.description? 11 | - prose.* 12 | - data.examples 13 | - data.specifications 14 | - data.browser_compatibility 15 | - prose.see_also 16 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/video/attributes/loop.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.video.loop 3 | specifications: https://html.spec.whatwg.org/multipage/media.html#attr-media-loop 4 | --- 5 | 6 | # `loop` 7 | 8 | A Boolean attribute; if specified, the browser will automatically seek back to the start upon reaching the end of the video. 9 | 10 | ## Type 11 | 12 | Boolean 13 | -------------------------------------------------------------------------------- /recipes/javascript-language-feature.yaml: -------------------------------------------------------------------------------- 1 | related_content: related_content/javascript.yaml 2 | data: 3 | - title 4 | - short_title? 5 | - mdn_url 6 | body: 7 | - prose.short_description 8 | - data.interactive_example? 9 | - prose.syntax 10 | - prose.description? 11 | - prose.* 12 | - data.examples 13 | - data.specifications 14 | - data.browser_compatibility 15 | - prose.see_also 16 | -------------------------------------------------------------------------------- /recipes/css-at-rule-descriptor.yaml: -------------------------------------------------------------------------------- 1 | data: 2 | - title 3 | - short_title? 4 | - mdn_url 5 | body: 6 | - prose.short_description 7 | - prose.syntax 8 | - prose.description? 9 | - prose.accessibility_concerns? 10 | - prose.* 11 | - data.formal_definition 12 | - data.formal_syntax 13 | - data.examples 14 | - data.specifications 15 | - data.browser_compatibility 16 | - prose.see_also 17 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | "plugins": ["jest"], 3 | "env": { 4 | "es6": true, 5 | "node": true, 6 | "jest/globals": true 7 | }, 8 | "overrides": [ 9 | { 10 | "files": [ "scripts/**/*.js" ], 11 | "extends": "eslint:recommended", 12 | "parserOptions": { 13 | "ecmaVersion": 2018, 14 | "sourceType": "module" 15 | } 16 | } 17 | ] 18 | }; 19 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/video/attributes/src.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.video.src 3 | specifications: https://html.spec.whatwg.org/multipage/media.html#attr-media-src 4 | --- 5 | 6 | # `src` 7 | 8 | The URL of the video to embed. This is optional; you may instead use the `This paragraph is a block-level element; its background has been colored to display the paragraph's parent element.
9 | ``` 10 | 11 | ```css 12 | p { background-color: #8ABB55; } 13 | ``` 14 | -------------------------------------------------------------------------------- /recipes/css-property.yaml: -------------------------------------------------------------------------------- 1 | data: 2 | - title 3 | - short_title? 4 | - mdn_url 5 | body: 6 | - prose.short_description 7 | - data.interactive_example? 8 | - prose.syntax 9 | - prose.description? 10 | - prose.accessibility_concerns? 11 | - prose.* 12 | - data.formal_definition 13 | - data.formal_syntax 14 | - data.examples 15 | - data.specifications 16 | - data.browser_compatibility 17 | - prose.see_also 18 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/bigint/static_methods/asuintn/examples/64-bit-ranges.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Staying in 64-bit ranges 3 | --- 4 | The `BigInt.asUintN()` method can be useful to stay in the range of 64-bit arithmetic. 5 | 6 | ```js 7 | const max = 2n ** 64n - 1n; 8 | 9 | BigInt.asUintN(64, max); 10 | // ↪ 18446744073709551615n 11 | 12 | BigInt.asUintN(64, max + 1n); 13 | // ↪ 0n 14 | // zero because of overflow 15 | ``` 16 | -------------------------------------------------------------------------------- /scripts/scraper-ng/rules/html-require-recipe-ingredients/ingredient-handlers/data-constituent-properties.js: -------------------------------------------------------------------------------- 1 | const listSectionHandler = require("./list-sections"); 2 | 3 | const handleDataConstituentProperties = listSectionHandler({ 4 | id: "Constituent_properties", 5 | introText: "This property is a shorthand for the following CSS properties:", 6 | minimumListItems: 2, 7 | }); 8 | 9 | module.exports = handleDataConstituentProperties; 10 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/video/attributes/controls.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.video.controls 3 | specifications: https://html.spec.whatwg.org/multipage/media.html#attr-media-controls 4 | --- 5 | 6 | # `controls` 7 | 8 | If this attribute is present, the browser will offer controls to allow the user to control video playback, including volume, seeking, and pause/resume playback. 9 | 10 | ## Type 11 | 12 | Boolean 13 | -------------------------------------------------------------------------------- /content/fr/html/reference/elements/abbr/examples/fournir-une-forme-étendue.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Fournir une version étendue 3 | width: 672 4 | height: 192 5 | --- 6 | Ajouter un attribut `title` permet de fournir une version détaillée de l'abréviation ou de l'acronyme. 7 | 8 | ```html 9 |Bienvenue sur MDN !
10 | ``` 11 | 12 | ```css 13 | abbr { 14 | font-variant: all-small-caps; 15 | } 16 | ``` 17 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/body/attributes/onhashchange.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.body.onhashchange 3 | specifications: https://html.spec.whatwg.org/multipage/webappapis.html#handler-window-onhashchange 4 | --- 5 | 6 | # `onhashchange` 7 | 8 | Function to call when the fragment identifier part (starting with the hash ('#') character) of the document's current address has changed. 9 | 10 | ## Type 11 | 12 | Function 13 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/bigint/static_methods/asintn/examples/64-bit-ranges.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Staying in 64-bit ranges 3 | --- 4 | The `BigInt.asIntN()` method can be useful to stay in the range of 64-bit arithmetic. 5 | 6 | ```js 7 | const max = 2n ** (64n - 1n) - 1n; 8 | 9 | BigInt.asIntN(64, max); 10 | // ↪ 9223372036854775807n 11 | 12 | BigInt.asIntN(64, max + 1n); 13 | // ↪ -9223372036854775807n 14 | // negative because of overflow 15 | ``` 16 | -------------------------------------------------------------------------------- /content/fr/html/reference/elements/abbr/examples/mettre-en-forme-une-abréviation.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Mettre en forme une abréviation 3 | width: 672 4 | height: 192 5 | --- 6 | Vous pouvez utiliser CSS afin de définir une mise en forme spécifique à utiliser pour les abréviations. 7 | 8 | ```html 9 |En utilisant CSS, on peut mettre en forme les abréviations !
10 | ``` 11 | 12 | ```css 13 | abbr { 14 | font-variant: all-small-caps; 15 | } 16 | ``` 17 | -------------------------------------------------------------------------------- /recipes/javascript-namespace.yaml: -------------------------------------------------------------------------------- 1 | related_content: related_content/javascript.yaml 2 | data: 3 | - title 4 | - short_title? 5 | - mdn_url 6 | body: 7 | - prose.short_description 8 | - data.interactive_example? 9 | - prose.description? 10 | - data.constructor_properties? 11 | - data.static_properties? 12 | - data.static_methods? 13 | - prose.* 14 | - data.examples 15 | - data.specifications 16 | - data.browser_compatibility 17 | - prose.see_also 18 | -------------------------------------------------------------------------------- /content/en-US/javascript/reference/classes/bigint/instance_methods/tostring/examples/negative-zero-bigint.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: Negative-zero `BigInt` 3 | --- 4 | There is no negative-zero `BigInt` as there are no negative zeros in integers. `-0.0` is an IEEE floating-point concept that only appears in the JavaScript [`Number`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number) type. 5 | 6 | ```js 7 | (-0n).toString(); // '0' 8 | BigInt(-0).toString(); // '0' 9 | ``` 10 | -------------------------------------------------------------------------------- /recipes/css-shorthand-property.yaml: -------------------------------------------------------------------------------- 1 | data: 2 | - title 3 | - short_title? 4 | - mdn_url 5 | body: 6 | - prose.short_description 7 | - data.interactive_example? 8 | - data.constituent_properties 9 | - prose.syntax 10 | - prose.description? 11 | - prose.accessibility_concerns? 12 | - prose.* 13 | - data.formal_definition 14 | - data.formal_syntax 15 | - data.examples 16 | - data.specifications 17 | - data.browser_compatibility 18 | - prose.see_also 19 | -------------------------------------------------------------------------------- /content/en-US/html/reference/elements/video/attributes/poster.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.video.poster 3 | specifications: https://html.spec.whatwg.org/multipage/media.html#attr-video-poster 4 | --- 5 | 6 | # `poster` 7 | 8 | A URL for an image to be shown while the video is downloading. If this attribute isn't specified, nothing is displayed until the first frame is available, then the first frame is shown as the poster frame. 9 | 10 | ## Type 11 | 12 | URL 13 | -------------------------------------------------------------------------------- /content/fr/html/reference/elements/video/attributes/src.md: -------------------------------------------------------------------------------- 1 | --- 2 | browser-compatibility: html.elements.video.src 3 | specifications: https://html.spec.whatwg.org/multipage/media.html#attr-media-src 4 | --- 5 | 6 | # `src` 7 | 8 | L'URL de la vidéo à embarquer. Cet attribut est optionnel et on peut utiliser un ou plusieurs éléments `