[Webkit-unassigned] [Bug 17398] New: querySelector and querySelectorAll don't match nodes and attributes with namespaces in them
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Feb 16 17:41:53 PST 2008
http://bugs.webkit.org/show_bug.cgi?id=17398
Summary: querySelector and querySelectorAll don't match nodes and
attributes with namespaces in them
Product: WebKit
Version: 525+ (Nightly build)
Platform: Macintosh
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: dialtone at gmail.com
The following html file has 4 alerts that return the values (in order): 0, 0,
null, null.
Right after this file finished loading my webkit (rev 30267) crashes.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
xmlns:athena="http://divmod.org/ns/athena/0.7">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script src="http://wirc.10noodles.com/static/j/jquery.js"
type="text/javascript" charset="utf-8" />
<title>untitled</title>
</head>
<body>
<div athena:class="foobar">ciao</div>
<athena:foobar>wella</athena:foobar>
<script type="text/javascript" charset="utf-8">
$(function () {
var nsr = function (prefix) {
var ns = {
"" : 'http://www.w3.org/1999/xhtml',
"html" : 'http://www.w3.org/1999/xhtml',
"athena": 'http://divmod.org/ns/athena/0.7'
};
return ns[prefix.toLowerCase()];
};
alert(document.querySelectorAll('div[athena|class="foobar"]',
nsr).length);
alert(document.querySelectorAll('athena|foobar', nsr).length);
alert(document.querySelector('div[athena|class="foobar"]', nsr));
alert(document.querySelector('athena|foobar', nsr));
});
</script>
</body>
</html>
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list