content icon indicating copy to clipboard operation
content copied to clipboard

Document blocking attribute for link,script,style elements

Open abinpaul1 opened this issue 3 years ago • 3 comments

Summary

Document the blocking attribute on script, link and style HTML elements and basic examples for how to use it.

Motivation

The attribute was added to HTML spec in https://github.com/whatwg/html/pull/7474

Supporting details

Explainer for the added attribute : https://github.com/whatwg/html/issues/7131

Related issues

Fix https://github.com/mdn/content/issues/12900

Metadata

  • [ ] Adds a new document
  • [ ] Rewrites (or significantly expands) a document
  • [ ] Fixes a typo, bug, or other error

abinpaul1 avatar Apr 04 '22 12:04 abinpaul1

Thanks! I think we should wait for an implementation before merging this. Implementation can get stalled.

What about making this a draft PR meanwhile?

teoli2003 avatar Apr 04 '22 12:04 teoli2003

Preview URLs

Flaws (1)

Note! 2 documents with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/HTML/Element/script Title: <script>: The Script element Flaw count: 1

  • macros:
    • /en-US/docs/Web/API/Element/load_event does not exist

(comment last updated: 2022-11-30 15:12:58)

github-actions[bot] avatar Apr 04 '22 14:04 github-actions[bot]

Per https://chromium.googlesource.com/chromium/src/+/f94b3a1c0ed4505190de7c149d6330600589a995 this seems to have shipped in Chrome 105 in August — so I’ve gone ahead and flipped it from Draft back to Review for Review.

Is there anything else we’re waiting on in order to merge this? @mnoorenberghe Should we consider https://github.com/mdn/content/pull/14648#pullrequestreview-939753875 to be resolved?

sideshowbarker avatar Nov 07 '22 07:11 sideshowbarker

Don't we need to also add browser compat data for this?

abinpaul1 avatar Dec 06 '22 23:12 abinpaul1

Don't we need to also add browser compat data for this?

Yes, that would be good. Do you want to create a PR?

Elchi3 avatar Dec 07 '22 11:12 Elchi3