- From: <bugzilla@jessica.w3.org>
- Date: Wed, 24 Apr 2013 14:45:27 +0000
- To: public-html-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=21439
--- Comment #9 from Leif Halvard Silli <xn--mlform-iua@xn--mlform-iua.no> ---
(In reply to comment #8)
> Please check the latest Editor's draft (from Saturday).
>
> The statement has been removed, in line with a resolution taken last week in
> the TF.
Hm. When I scanned the TF report, I wondered if you had come to the opposite
conclusion. May be I did not read the entire text ...
Anyway, the draft from Saturday still says:
]]
One of the most common mistakes authors make that is easily repaired by user
agents is to use a description, instead of a URL that links to a description.
This means there is often plain text description in the content of an invalid
longdesc attribute. Converting such attributes to data URLs is a simple repair
strategy that can help recover from cases where authors have made this mistake.
[[
Plus as well:
]]
//Tries to repair errors where the longdesc isn't a URI
var describedImages = document.querySelectorAll('img[longdesc]');
for (i in describedImages) {
if (i.longdesc && !(validURL(i.longdesc)) { //assumes some URL validating
function
var theData = encodeURIComponent(i.longdesc);
i.longdesc = "data:text/plain;charset=";
i.longdesc += document.charset;
i.longdesc += theData;
}
}
[[
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Wednesday, 24 April 2013 14:45:32 UTC