Skip to content
This repository has been archived by the owner on Jul 30, 2019. It is now read-only.

clean up img/decoding #1411

Merged
merged 2 commits into from
Apr 25, 2018
Merged

clean up img/decoding #1411

merged 2 commits into from
Apr 25, 2018

Conversation

chaals
Copy link
Collaborator

@chaals chaals commented Apr 25, 2018

fix #1388

  • Note it is at risk (but it is likely to be OK)
  • Add it to img attributes list
  • Add it to attributes index

fix #1388
* Note it is at risk (but it is likely to be OK)
* Add it to `img` attributes list
* Add it to attributes index
@chaals chaals requested review from cynthia and edent April 25, 2018 11:55
The <dfn element-attr for="img"><code>referrerpolicy</code></dfn> attribute is a <a>referrer policy attribute</a>. Its purpose is to
set the <a>referrer policy</a> used when <a>fetching</a> the image. [[!REFERRERPOLICY]]
The <dfn element-attr for="img"><code>decoding</code></dfn> attribute is an enumerated attribute.
It is an [=image decoding hint=], to reqeust synchronous asynchronous image loading.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there’s an "or" missing between "synchronous asynchronous".
(And does the comma have a function in the same sentence?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"or": yep. +typo in "request", and the comma is ok but unnecessary.

all fixed - thank you

thanks to @prlbr
set the <a>referrer policy</a> used when <a>fetching</a> the image. [[!REFERRERPOLICY]]
The <dfn element-attr for="img"><code>decoding</code></dfn> attribute is an enumerated attribute.
It is an [=image decoding hint=] to request synchronous or asynchronous image loading.
Valid values are "<code>async</code>", "<code>async</code>", and "<code>auto</code>".
Copy link

@mtrootyy mtrootyy Apr 25, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'are "<code>async</code>", "<code>async</code>", and' is typo.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, sorry, didn't refresh the page before merging... will submit another commit to fix this.

Thanks for the review @mtrootyy .

@siusin siusin merged commit c9675be into master Apr 25, 2018
siusin added a commit that referenced this pull request Apr 25, 2018
@chaals chaals deleted the chaals-img-decoding-1388 branch April 25, 2018 14:56
@siusin siusin mentioned this pull request Apr 25, 2018
@cynthia
Copy link
Member

cynthia commented Apr 26, 2018

@chaals Why is this at risk? Safari and Chrome implement it.

https://bugs.webkit.org/show_bug.cgi?id=176016

@chaals
Copy link
Collaborator Author

chaals commented Apr 26, 2018

@cynthia

Why is this at risk

To be pedantic, it's potentially at risk. Because i was being super-cautious - and as noted, I figured it was likely OK.

In painful detail, the tests I was looking at only actually covered the IDL attribute, not useful behaviour, and the Chromium info I dug up to start suggested implementation was still in progress.

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

Successfully merging this pull request may close these issues.

"Content attributes:" of <img> element
5 participants