-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parse iframe[title] as structure #42
Comments
A few quick questions on this one:
<a href="https://sixtwothree.org" class="h-card" title="Welcome to my website!">Jason Garber</a> {
"type": ["h-card"],
"properties": {
"name": ["Jason Garber"],
"url": [
{
"value": "https://sixtwothree.org",
"title": "Welcome to my website!"
}
]
}
} …an actual value-title pattern. 😂 Edit: Thinking more about my suggest above, how would my suggestion interact with something like… <div class="h-card">
<span class="p-name">Jason Garber</span>
<img src="https://assets.sixtwothree.org/jgarber.png" class="u-photo" alt="A photo of the author with wild eyes and mouth agape" title="My default avatar!">
</div> Maybe as… {
"type": ["h-card"],
"properties": {
"name": ["Jason Garber"],
"photo": [
{
"value": "https://assets.sixtwothree.org/jgarber.png",
"alt": "A photo of the author with wild eyes and mouth agape",
"title": "My default avatar!"
}
]
}
} |
☝️ I'm not sure I support my own suggestion in the second bullet point. The Whereas the So I just managed to talk myself out of bullet point two. |
@tantek pointed out that #2 is making good progress and we might be able to extend this to parse text alternatives for other elements like
iframe
,audio
,video
,object
, and maybesource
.This issue is specifically for iframe, since providing a text alternative in the
title
attribute is well-documented on MDN.My understanding of the issue would result in this spec update, copied from #2 (comment):
Add a new section with title "parse an
iframe
element forsrc
andtitle
" with the steps:iframe[title]
{}
structure withvalue
: thesrc
attribute of theiframe
as a normalized absolute URL, following the containing document's language's rules for resolving relative URLs (e.g. in HTML, use the current URL context as determined by the page, and first<base>
element, if any).alt
: thetitle
attribute of theiframe
src
attribute as a normalized absolute URL, following the containing document's language's rules for resolving relative URLs (e.g. in HTML, use the current URL context as determined by the page, and first<base>
element, if any).The text was updated successfully, but these errors were encountered: