[Webkit-unassigned] [Bug 39026] Recognize async attribute on script tags
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 1 20:58:22 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=39026
Eric Seidel <eric at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #57612|review? |review-
Flag| |
--- Comment #7 from Eric Seidel <eric at webkit.org> 2010-06-01 20:58:19 PST ---
(From update of attachment 57612)
Seems at least the SVG part of this change is untested.
This test could be much simpler using a little document.write(). Since then you could have a function which writes a script tag with a specific ID and then returns the .async value.
testAsyncValue("ASYNC")
function testAsyncValue(async_value)
{
var scriptId = "test" + testNumber;
document.write("<script id='" + scriptId + "' src='ignored.js' async='" + async_value + "'></scr" + "ipt>");
scriptElement = document.getElementById(scriptId);
testNumber++;
return scriptElement.async;
}
or something like that. You can document.write to an iframe if that works nicer.
r- for lack of SVG testing.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list