[Bug 10331] What do "defined to contain a URL" and "defined to contain one or more URLs" mean? There are some cases that are unclear. For instance, useMap can only contain (a subset of) valid URLs AFAICT, does that count? Also, obsolete stuff like applet.src has n

http://www.w3.org/Bugs/Public/show_bug.cgi?id=10331





--- Comment #2 from Aryeh Gregor <Simetrical+w3cbug@gmail.com>  2010-08-11 21:53:15 ---
Also for body.background, object.codeBase, applet.codeBase.  I created a test
case to see how browsers treat them:

<!doctype html>
<script>
    var els = {
        "body": ["background"],
        "iframe": ["longDesc"],
        "img": ["longDesc"],
        "object": ["code", "codeBase"],
        "applet": ["object", "codeBase"],
        "frame": ["longDesc"]
    }
    var urls = [], strings = [];
    for (var elName in els) {
        for (var i = 0; i < els[elName].length; i++) {
            var el = document.createElement(elName);
            el.setAttribute(els[elName][i], "abcd");
            if (el[els[elName][i]] == "abcd") {
                strings.push(elName + "." + els[elName][i]);
            } else {
                urls.push(elName + "." + els[elName][i]);
            }
        }
    }
    document.write("<ul><li>urls: " + urls.join(", ") + "<li>strings: " +
strings.join(", "));
</script>

Chrome/Safari:

* urls: img.longDesc
* strings: body.background, iframe.longDesc, object.code, object.codeBase,
applet.object, applet.codeBase, frame.longDesc

Firefox:

* urls: body.background, iframe.longDesc, img.longDesc, object.code,
object.codeBase, applet.object, applet.codeBase, frame.longDesc
* strings: 

Opera:

* urls: iframe.longDesc, img.longDesc, object.codeBase, applet.codeBase,
frame.longDesc
* strings: body.background, object.code, applet.object

IE8 (applet.object gave some weird error and I had to comment it out):

* urls: body.background, iframe.longDesc, img.longDesc, object.codeBase,
applet.codeBase, frame.longDesc
* strings: object.code

IE9PP4:
* urls: iframe.longDesc, img.longDesc, applet.object, applet.codeBase,
frame.longDesc
* strings: body.background, object.code, object.codeBase

Probably no big deal whatever these end up being, but I'd like some clarity
before I file bugs against browsers, since some of these might be oversights in
the spec.

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Wednesday, 11 August 2010 21:53:18 UTC